Optimize undo for freehand when the next drawing operation occurs, and optimize
for chunks by explicitly stating when the drawing has completed.