moved texture creation to own file