Add histograms to image viewer