add caption to loadImages()