passing parser to image tag to process captions