'Here we\'re just going to open up the last.fm url, grab the image links and return them
Won\'t save any image urls, or save the artwork in the cache. Useful for search results, etc.'

def get_image_links(self, ArtistID=None, AlbumID=None):

    if ArtistID:
        self.id_type = 'artist'
        data = lastfm.request_lastfm('artist.getinfo', mbid=ArtistID, api_key=LASTFM_API_KEY)
        if (not data):
            return
        try:
            image_url = data['artist']['image'][(-1)]['#text']
        except (KeyError, IndexError):
            logger.debug('No    artist    image    found')
            image_url = None
        thumb_url = self._get_thumb_url(data)
        if (not thumb_url):
            logger.debug('No    artist    thumbnail    image    found')
    else:
        self.id_type = 'album'
        data = lastfm.request_lastfm('album.getinfo', mbid=AlbumID, api_key=LASTFM_API_KEY)
        if (not data):
            return
        try:
            image_url = data['album']['image'][(-1)]['#text']
        except (KeyError, IndexError):
            logger.debug('No    album    image    found    on    last.fm')
            image_url = None
        thumb_url = self._get_thumb_url(data)
        if (not thumb_url):
            logger.debug('No    album    thumbnail    image    found    on    last.fm')
    return {'artwork': image_url, 'thumbnail': thumb_url}
