half changes to texture loader