extract colors from an image