fixed a corner-case scope bug in loadImages(...)...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>