Now the image encoder can order palette's pixel in different ways. This should fix the TIM2 ordering issue.