Wrote a new Radiance mapping function that takes into account all the images instead of just one.