imposeColors function

Recolor an image to a provided set of colors