update color palette and use a palette-sensitive color palette