wrote gatherPhotons, rendered first image