Redesigned script structure

https://github.com/cferdinandi/kraken/issues/38
Fixed offset argument issue with `parseInt()` function
Added robust API

* Added default values
* Added `init()` function with ability to pass in values
* Exposed `checkForImages()` as public method
Launch version 2
Merge branch 'init-2'