save_handler = SAVE[format.upper()]
im.save(thumbname)
makeThumb(os.path.join(thumbsFolder, filename), os.path.join(fileFolder, filename))