So, I ended up making a request to https://api.linkedin.com/rest/images/{urlquoted urn}
to get the URL. You can specify the query parameters params = {'fields': 'downloadUrl'}
to only get the downloadUrl if that's what you need. Please note that the URL expires every 90 days. You will have to refresh it every 90 days.