Fix for Chrome type error

Chrome throws a type error on `new Image()` but not with
`document.createElement('img')`, when calling drawImage