Updated color palette processing