Properly delete traces once a region is removed (Image processing tool)