Match image dowload URL to API endpoint URL

The UI used to use a different URL scheme for images which was different
from the endpoint used in the API but this has now been resolved so make
them match in the API output

For #84