Fix error 'Improper call to JPEG library in state 200'
Hello,
Related to the issue #106.
If I understood correctly, it seems this error comes from the fact that cancelling an image is considered as a failure, right ?
I hope this commit it's the right way to handle this problem.
Thanks