Improve contrast algorithm to only use Y.