adds link to photo caption if it exists