Changed the calculation of the sum for the camera from the maximum to the sum of all pixels