re-added generate_photon_paths, deleted by mistake