allow handling of callback function with canvas context
Merge pull request #1 from rmoch/master

allow handling of callback function with canvas context