Updates to updateAttachment, awaiting changes from issue #132