add argument to write coordinates in nanometers instead of pixels