add CutImage class, edit main