Extracts colors from an image and generates a color palette against a whitelist of colors.