added parsing for URL segment where share img URL lives