normalize histograms to the size of the image; this should detect similar images even if their sizes are different