split image in regions done