converted the image into a set of base colours