Don't pass image object to callback.
Various changes:
- Build minimized file using closure compiler
- Added proper license headers