save2file in grabcut