moved texture loader