PaletteView fixes, Animation fixes, Code cleanup