Nuclear magnetic resonance imaging at microscopic resolution