fix material image if material is not valid