Overlay a pattern image on a group


I am trying to overlay a pattern image on a group. The best thing that came to my mind was to create a canvas and move the canvas over the visible area depending on the coordinates of the mesh. But it seems to me that there is an easier way.
An example of how it should look

Pattern image: