mdedit: added ability to add binary attachments