improvements to drawingCanvas