def get_subpages(soup):
    """Images can be found on separate pages. Extract the URL of these subpages."""
    pages = []
    for tag in soup.findAll('li', {'class' : 'image'}):
        a = tag.find('a', href=True)
        if a:
            pages.append(a['href'])
        
    return pages