add MergeImage class, edit main, CutImage