finalizing the dominant color