add support for umd

- supports AMD modules
- supports commonJS modules
- attaches `Imager` to window only if neither of the above are present