Create captions from image tags