convert all images to RGB before comparing histograms
check images for similar aspect ratio before comparing histograms; cuts runtime by about a third