Move texture creating to render()