changed some things in texture, added some model handling functions