def set_image_size_mode(s):
    """Set the quality of the images to be downloaded
    This set the global variable `image_size_mode`

    :param s: quality level, 1 is original size, 12 is smallest
    :type s: str
    """
    global image_size_mode
    image_size_mode = s
