added modification for image captions