image splitting implemented