Improved colour->greyscale conversion.