Magnetic Imaging in Photonic Crystal Microcavities