added the histograms of the images and just to check code elegancy