fix palette of til2png thumbnail