fix attachment image bug