Many changes made to palette and paintArea