Texture loading improvements