fixed loadImage bug