tweaks to loadImageInfo

one bug fixed, where checking for channels could overwrite a possible
false with an array!

refactored the usage of loadImageInfo