add getTexture method