How to get the link to the image in order to add it to the widget?