encode palette once only, use a tileset-specific palette