Move LoadTexture into seperate function