When the raster consists of disjoint islands, the path planning could be improved by avoiding scanning repeated across the gaps. 