Fix color conversions between resizing and tile.