Add test to check if callback is called only once
Make callback function be called only once
Merge pull request #25 from shinnn/master

Do not call the callback function twice when image size detection failed
progress