Moved texture loading to texture.cpp