add photon generator