Generate URL of an image field

imagem do calcada.JPG

Guys, what is the correct way to generate a url for an image field through JavaScript ?

I wanted to generate a Dashlet with the image , but do not know how this works in REST .