Images to histogram Study