modified tif2wlzDom to accept other variables