Only optimize undo on a freehand operation, and remove 'freehand' mode for
custom brush.