Optimize colorize.