updated texture loading