The URL can be extracted by just doing first_image.group(n), where n is the capture group for the URL.