Creating vector layers from a raster