How to set an image brush by specifying a textures file location?

Okay, so here’s the deal: I’ve imported over two thousand images into unreal. When you click on the image that’s currently displayed, the brush should change to its texture to the next image. As if you’re reading a book and flipping its pages. Some images share the same name, but are stored in different folders (F.I: IMG_collection_001, IMG_collection_002). I’d use the “Select” node, but there are just so many of them.

Does anyone know how I can set the brush’s texture by feeding the thing the file location of the image? I’m willing to write code if necassary, but I should say that I’m completely new to C++, so I prefer to do as much in nodes as possible.