Moved texture loading