Fixed loadImage()