Changed how textures are loaded