I think the question here is more like “how to find the Mark in the given range” than “How to fill the prompt”. And since images are nodes and not marks, I don’t see how this gives an answer to the question.
This post however is related to getting a mark in the current selection: Expanding the selection to the active mark?