Added conversion for other image types.

This fixes jpegs (YCbCr) and Paletted PNGs not showing up properly.