Fixing palette size and incompatibility when converting tex -> tim