Support CORS-enabled images to avoid tainted canvas

See https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image for more info