Preventing image editing for embedded attachments