Determines primary color in image automatically