Update splitimage.m