replace figure in tex to hyperlinks