def get_img_to_name_dict(images):
    """
    Gets {img-id: img-data} dictionary
    :param images:
    :return:
    """
    dict_ = dict()
    for img_dict in images:
        id_ = img_dict.pop('id')
        dict_[id_] = img_dict
    return dict_