fix some problems and add image splitter.