High resolution pixel definition in hybrid microcavities