Improved the efficiency of image optimization and analyzation code, made histogram comparisons more strict
Merge branch 'develop'