def downloadSessionImages(server, filename=None, height=<NUM_LIT>, width=<NUM_LIT>,<EOL>opacity=<NUM_LIT:100>, saturation=<NUM_LIT:100>):  
info = {}<EOL>for media in server.sessions():<EOL><INDENT>url = None<EOL>for part in media.iterParts():<EOL><INDENT>if media.thumb:<EOL><INDENT>url = media.thumb<EOL><DEDENT>if part.indexes:  <EOL><INDENT>url = '<STR_LIT>' % (part.id, part.indexes.lower(), media.viewOffset)<EOL><DEDENT><DEDENT>if url:<EOL><INDENT>if filename is None:<EOL><INDENT>prettyname = media._prettyfilename()<EOL>filename = '<STR_LIT>' % (media.usernames[<NUM_LIT:0>], prettyname, int(time.time()))<EOL><DEDENT>url = server.transcodeImage(url, height, width, opacity, saturation)<EOL>filepath = download(url, filename=filename)<EOL>info['<STR_LIT:username>'] = {'<STR_LIT>': filepath, '<STR_LIT:url>': url}<EOL><DEDENT><DEDENT>return info<EOL>
Helper to download a bif image or thumb.url from plex.server.sessions.

       Parameters:
           filename (str): default to None,
           height (int): Height of the image.
           width (int): width of the image.
           opacity (int): Opacity of the resulting image (possibly deprecated).
           saturation (int): Saturating of the resulting image.

       Returns:
            {'hellowlol': {'filepath': '<filepath>', 'url': 'http://<url>'},
            {'<username>': {filepath, url}}, ...