implemented getTexture