now with color balance --- getting frequency of color from original image