How to add label link to the image photos url link

I am doing an OCR app for carplate detection so the issues I am facing right now is that I have to input the link manually into the image component in thunkable for the ocr to read. Is there a way to input the link to the image component as seen in the picture below with a click of a button.