image to material, doc to safety