fix for materials and image parsing