adding paint and border mode toggle
merged and adds backup pallete json