fixed imageloading bug