light calculations from image

restructured the script to take a peek of the shot to calculate before deleting it.