Finally fixed texture loading