Texture load function added