a rough first draft of opening new figure window when reference image clicked.