'Return all of the images on an html page, lxml root'

def get_img_urls(self, article_url, doc):

    img_kwargs = {'tag': 'img'}
    img_tags = self.parser.getElementsByTag(doc, **img_kwargs)
    urls = [img_tag.get('src') for img_tag in img_tags if img_tag.get('src')]
    img_links = set([urljoin(article_url, url) for url in urls])
    return img_links
