updated loadImages method