Fix color pallete api to use new palette api