this is now collecting image histograms correctly