Add support for captions in embedded images