fix the problem of images leaving traces