Added update to smooth out drawing. It improves the common use case, but is not as fast for drawing very long strokes.