Added support for pasting image attachments