Futher optimize palette animation
Add rgb to BGR color conversion