Better error handling in ImageIO

* Handles errors better
* More verbose error messages
* Throws freeimage errors also
Merge pull request #200 from shehzan10/imageio_fixes

Better error handling in ImageIO