temporarily fixes #2 and the redrawing slowliness when drawing long
strokes