Add captions to gallery images