fixed bug in new image splitter