If you have the ID of the image, you can simply resolve the public url like this
var id = new Guid("");
var media = DataFacade.GetData<IMediaFile>(f => f.Id == id);
var url = MediaUrls.BuildUrl(media, UrlKind.Public)