Kirupa - Create a Photo Gallery, How could i put a caption for each photo?

:beer: Hi all, im new here i stumbled upon the photo gallery page when looking at how to create one for my website, thanks to sbeener for the code! :-). It works perfectly however how could i change/add to the code so that for a specific photo a certain caption appears above the photo?

Any ideas will be greatly appreciated.

cheers, alex350r