Refactoring drawing.js: paletteControl, paintCanvas