save material - using temporary files and textures with relative paths to the material