fixed imageloading causing exceptions