An extension to display histograms for images