Added very basic support (rendering) for captions of thumb and frame images.

Change-Id: I4a59d4601c9bf44b241bb1432c9f1abc3f961743