Improved with image onload event so dimensions are correct ahead of calculations, bumped version to 1.0.1

Removed a console.log