clean up on generating thumbnail part on 'attach an item'