Fixed the way the texture is loaded