The fitting of the gimp mask