Imaging of magnetic domains with scanning tunneling optical microscopy