Fixed issue to remove thumbnails when roi is deleted.