Change insertImage to insertAttachment