Atom “pinhole camera” with nanometer resolution