fix for IE image attachment error on save