Formatting: conform to style guidelines
Docs: update examples to be relevant to Diva
Fixed: added support for images with CORS headers

For CORS to work with canvas, we need to set the crossOrigin attribute on the image. See https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image

Refs #145