set image attachment to nil on send