Updated texture loading method