Sorts and Retrieves the colors from an image input.