Changing imageEqual method to check histograms

…instead of using ImageChops.difference