Query images on any page from files field

I use the following in a files field so that I can pick any image on the site from any page. Trouble is, this doesn’t work for the images on the page I am working on when the page is a draft. How can i query all the images in the site, regardless of status?

query: site.index.images

I think i need site.index.images and page.images in the same query.

I haven’t tested but can you check following query:

query: site.index(true).images

Drafts ignored as default.

Reference: $site->index(bool $drafts = false): Kirby\Cms\Pages

Ah ha! That works. Thanks @ahmetbora