Do perimeters one island at time instead of doing all holes before all contours