Use image urls if available and the image name only if the url is available