Updated and fixed texture loading