Implemented texture palette trick.

Some textures are exported with palettes that in-game
will be changed. This texture will be exported by changing
their palette by-hand, so importing need to be quantizate
with new palette but in texture file need to write original palette.
Fixed texture palette compression