read all images and calculate the Histogram