added weight/seg to run_im3shape