Fixing shades-of-gray