making changes to photon map