Removed texture loading functions due to memory leak.