Solve cross-origin issues

Now using image element to create raster, instead of direct url.
Merge pull request #14 from IngeniumGolf/cross-origin

Solve cross-origin issues