Added caption support for images.