I’m trying to open a URL and change my Widget to a photo in my iCloud directory

Could some assist me? I’m just learning scriptable and using it for the first time.
I’m trying to create a widget to display a photo to in my iCloud folder that open a certain URL page.