added some simple standard deviation calculations to help the generator adjust for dark or light images.