Added support for adding images to a document