The role of virtual photons in nanoscale photonics