Updated Texture Code For 1.6.4