Photon simulation