Magnetic resonance imaging, with its ability to provide three-dimensional, elementally selective imaging without radiation damage, has had a revolutionary impact in many fields, especially medicine and the neurosciences. Although challenging, its extension to the nanometre scale could provide a powerful new tool for the nanosciences, especially if it can provide a means for non-destructively visualizing the full three-dimensional morphology of complex nanostructures, including biomolecules. To achieve this potential, innovative new detection strategies are required to overcome the severe sensitivity limitations of conventional inductive detection techniques. One successful example is magnetic resonance force microscopy, which has demonstrated three-dimensional imaging of proton NMR with resolution on the order of 10nm, but with the requirement of operating at cryogenic temperatures. Nitrogen-vacancy (NV) centres in diamond offer an alternative detection strategy for nanoscale magnetic resonance imaging that is operable at room temperature. Here, we demonstrate two-dimensional imaging of 1 H NMR from a polymer test sample using a single NV centre in diamond as the sensor. The NV centre detects the oscillating magnetic field from precessing protons as the sample is scanned past the NV centre. A spatial resolution of ∼12nm is shown, limited primarily by the scan resolution.