Imaging magnetic domains with sub-micrometer resolution