import re


def get_exact_version(version, image_dict):
    """
    Get the full version string matching the version from the available images
    :param version: Upgrade/Downgrade version
    :param image_dict: Available images dict
    :return: Image version
    """

    for image_version in image_dict.keys():
        if re.search(str(version), image_version):
            return image_version
    return None