Decide the percentage of a color in an image