Removed unnecessary MAX_PHOTON_DISTANCE variable