Using QTextDocument API to create an image entry int the mail editor.