added maskconv script, resolve #36