I am trying to render an image based on the full local path coming from API.
for example, if the full local path in API is an object like
{defaultPath: