Better error handling in ImageIO
Better error handling in ImageIO

* Handles errors better
* More verbose error messages
* Throws freeimage errors also

9prady9/arrayfire,munnybearz/arrayfire,0x0all/arrayfire,unbornchikken/arrayfire,9prady9/arrayfire,umar456/arrayfire,munnybearz/arrayfire,pentschev/arrayfire,hshindo/arrayfire,hshindo/arrayfire,Keno/arrayfire,bkloppenborg/arrayfire,jramapuram/arrayfire,arrayfire/arrayfire,arrayfire/arrayfire,mrgloom/arrayfire,umar456/arrayfire,bkloppenborg/arrayfire,umar456/arrayfire,marbre/arrayfire,merlin-ext/arrayfire,unbornchikken/arrayfire,arrayfire/arrayfire,victorv/arrayfire,linan7788626/arrayfire,pentschev/arrayfire,HolyGeneralK/arrayfire,victorv/arrayfire,asifmadnan/arrayfire,umar456/arrayfire,bkloppenborg/arrayfire,victorv/arrayfire,merlin-ext/arrayfire,9prady9/arrayfire,glehmann/arrayfire,jramapuram/arrayfire,shehzan10/arrayfire,arrayfire/arrayfire,mrgloom/arrayfire,ghisvail/arrayfire,victorv/arrayfire,pombredanne/arrayfire,hshindo/arrayfire,jramapuram/arrayfire,marbre/arrayfire,munnybearz/arrayfire,linan7788626/arrayfire,asifmadnan/arrayfire,linan7788626/arrayfire,marbre/arrayfire,linan7788626/arrayfire,pavanky/arrayfire,pavanky/arrayfire,mrgloom/arrayfire,HolyGeneralK/arrayfire,asifmadnan/arrayfire,asifmadnan/arrayfire,glehmann/arrayfire,pentschev/arrayfire,pombredanne/arrayfire,Keno/arrayfire,Keno/arrayfire,bkloppenborg/arrayfire,merlin-ext/arrayfire,shehzan10/arrayfire,ghisvail/arrayfire,merlin-ext/arrayfire,shehzan10/arrayfire,pombredanne/arrayfire,pavanky/arrayfire,pavanky/arrayfire,jramapuram/arrayfire,ghisvail/arrayfire,unbornchikken/arrayfire,0x0all/arrayfire,pombredanne/arrayfire,ghisvail/arrayfire,Keno/arrayfire,unbornchikken/arrayfire,mrgloom/arrayfire,pentschev/arrayfire,marbre/arrayfire,hshindo/arrayfire,shehzan10/arrayfire,9prady9/arrayfire,HolyGeneralK/arrayfire,HolyGeneralK/arrayfire