forked from: pencil tool

Noticing that the drawing data in the canvas gets really big and starts to
lag in responsiveness over time (a lot of time granted, but still), I figured
I would show you a better way, codeonwort.