Improved canvaspaint example

... proceeds smoother