How to add an image from a URL

I have a script that returns a random book title, author and image url from an Airtable base. Trying to add an image to the widget. but not getting it.

let coverPic = w.imageAtURL(bookCover)

Not sure to understand what you want but could try something like this

let img = await new Request("http://urlofyourimage.com/image.jpg").loadImage()

let w = new ListWidget()
let stack = w.addStack()
let imgstack = stack.addImage(img)
imgstack.imageSize = new Size(80,80)

Script.setWidget(w)
w.presentSmall()
Script.complete()

Thank you so much. Perfect.