Pencil Sketcher in HTML5

This is a work still in progress. The purpose of this experiment is to generate a pencil-like version of a photo (something like the artistic photo booths in shopping malls) using HTML5. To-do list: (1) fill in the blanks, (2) allow user to take a picture using his webcam, (3) speed up animation, (4) use my own hand as image.

Choose a photo from your device, then experiment with the buttons below.