Made histogram matching stricter based on real world cases
Improved thumbnails so that wide images have their full height used
Merge branch 'develop'