Improved render code and allowed a model to have no texture