Can change the Quarto working directory in one line?

The project structure looks like this:

root
├───image.png
└───quarto.qmd

In quarto.qmd, it has the following codes:

!["Image title"](./image.png)

Now I create a Quarto project, the file structure is changed to this:

root
├───script.R
├───image.png
└───quarto project
    └───quarto.qmd

I have 2 questions:

  1. Can I change the default working directory in quarto.qmd to ../ in just one line? There are so many of the image and I don't want to change them one by one everytime.
  2. Changing !["Image title"](./image.png) to !["Image title"](../image.png) somehow doesn't seem to work in a Quarto project. It seems to parse the path to root/.../image.png.

knitr::opts_knit$set(root.dir = '../') or

knitr:
  opts_knit:
    root.dir: "../"

seem to change only the code, not the image path.