improve palette replacement
Show used colors in palette