Implemented intensity statistics that saves an array and a histogram of the average intensity of each shot