Light now emitted by spheres in photon mapping as well, moved drand() out, trying
to work around the GCC threading problem