added ability to add caption to images in gallery