Add thumbnail captions to images