Is there a hook in the query block I can use?

As it is impossible to use your image block if I make a query through the attachments, I 'm thinking to make my own image block for this purpose. But, for that, I need to have the query 's output. That why I 'm speaking about a hook for that.
I 'm not a developper pro, but I can write some code, in this case with the ACF 's help
Thanks