Create a color palette from an image