import glob


def get_image_paths(pathname):
    """
    Get the sorted image paths and the corresponding file names
    :param pathname: file path
    :return: a list of file paths and the corresponding file names
    """
    images_path = sorted(glob.glob(pathname))
    names = []
    for path in images_path:
        name = path[-10:].split('.')[0]
        names.append(name)
    return images_path, names