Fixed texture loading issue where textures would be upside-down