make getTexture() public