delete image files when possibe