to plot and analyse histograms of colour image