modified jemdoc.py to add image caption