#20 more improvements, write on shapefile the masked layer