fixed a bug with mask deletion (ui)
correct a ui bug with masks labels when switching images