fixed gatherPhotons, rendered images, performance