simplify pencil
uiBrushClicked -> uiPaintButtonsClicked
create getOutlinePainter method
use onImageInputChange method
change isPainting to false after painting
set isPainting to false after afterFinishCallback is called