Added basic average image analysis and saturation detection