Extract a 16 color palette from an image.