added support for canvas as source
Merge pull request #1 from zebradog/master

added support for canvas as source