fixed loadImages