fix image does not exist bug on attachment file