Use cost raster to init costdistance raster