Function upgradeTexture