Fix for Chrome

img instanceof Image does not work in Chrome
Merge pull request #11 from danielbarela/master

Fix for Chrome