Refacto to add callback handlers
Handled error cases
Tests with cropped images are ok
Uncomment tests
Update README.md, todo: remove all 'console.log'