Tweaked color palette extraction heuristic.