Create a file called captions.txt in the same subfolder to /photos as your image(s). To bind a comment to a photo, captions.txt must contain this structure:
image1.jpg|Caption 1 image2.jpg|Caption 2
etc...
But remember: captions.txt MUST be placed in the same folder as the image you want to comment!