fix rm img issue