removed unneccessary code
correct the public url scheme for previewUri in figure options