Clean up texture loading.