Use createPatternFromImage rather than createPattern

createPattern only handles videos and canvases. createPatternFromImage handles image -> pattern
conversions.

Fixes #154.
Merge pull request #155 from dhasenan/master

Use createPatternFromImage rather than createPattern