Reworked texture loading to be smoother and nicer.