Creates a color palette from image