Scanning tunneling microscope based nanoscale optical imaging of molecules on surfaces