use RAII to avoid freeimage bitmap resource leaks
use RAII to avoid freeimage bitmap resource leaks

hshindo/arrayfire,pentschev/arrayfire,pombredanne/arrayfire,mrgloom/arrayfire,bkloppenborg/arrayfire,mrgloom/arrayfire,umar456/arrayfire,9prady9/arrayfire,arrayfire/arrayfire,ghisvail/arrayfire,arrayfire/arrayfire,pentschev/arrayfire,hshindo/arrayfire,bkloppenborg/arrayfire,pentschev/arrayfire,ghisvail/arrayfire,umar456/arrayfire,victorv/arrayfire,merlin-ext/arrayfire,marbre/arrayfire,victorv/arrayfire,mrgloom/arrayfire,umar456/arrayfire,pombredanne/arrayfire,shehzan10/arrayfire,mrgloom/arrayfire,bkloppenborg/arrayfire,bkloppenborg/arrayfire,shehzan10/arrayfire,9prady9/arrayfire,hshindo/arrayfire,marbre/arrayfire,shehzan10/arrayfire,munnybearz/arrayfire,9prady9/arrayfire,9prady9/arrayfire,pentschev/arrayfire,pombredanne/arrayfire,marbre/arrayfire,pombredanne/arrayfire,merlin-ext/arrayfire,munnybearz/arrayfire,arrayfire/arrayfire,shehzan10/arrayfire,ghisvail/arrayfire,umar456/arrayfire,hshindo/arrayfire,ghisvail/arrayfire,merlin-ext/arrayfire,victorv/arrayfire,arrayfire/arrayfire,victorv/arrayfire,merlin-ext/arrayfire,marbre/arrayfire,munnybearz/arrayfire