def get_images(images, dest_dir_name, images_format, first_image_name):

    if images:
        discogs_auth = DiscogsAuth()
        for i, image in enumerate(images, 0):
            logger.debug('Downloading image "{0}"'.format(image))
            try:
                picture_name = ''
                if i == 0:
                    picture_name = first_image_name
                else:
                    picture_name = images_format + "-%.2d.jpg" % i

                resp, content = discogs_auth.handle.request(image, 'POST',
                        headers={'user-agent': USER_AGENT })
                if resp['status'] == '200':
                   with open(os.path.join(dest_dir_name, picture_name), 'w') as fh:
                       fh.write(content)
            except Exception as e:
                logger.error("Unable to download image '{0}', skipping. Error: {1}".format(
                    image, e))
Download and store any available images
dataset/ETHPy150Open jesseward/discogstagger/discogstagger/taggerutils.py/get_images