Export specific image from remote compute
    :param project:
    :param compute_id:
    :param image_type:
    :param image:
    :param project_zipfile:
    :return:

def _export_remote_images(project, compute_id, image_type, image, project_zipfile, temporary_dir):
    """
    Export specific image from remote compute
    :param project:
    :param compute_id:
    :param image_type:
    :param image:
    :param project_zipfile:
    :return:
    """

    log.info("Obtaining image `{}` from `{}`".format(image, compute_id))

    try:
        compute = [compute for compute in project.computes if compute.id == compute_id][0]
    except IndexError:
        raise aiohttp.web.HTTPConflict(
            text="Cannot export image from `{}` compute. Compute doesn't exist.".format(compute_id))

    (fd, temp_path) = tempfile.mkstemp(dir=temporary_dir)
    f = open(fd, "wb", closefd=True)
    response = yield from compute.download_image(image_type, image)

    if response.status != 200:
        raise aiohttp.web.HTTPConflict(
            text="Cannot export image from `{}` compute. Compute sent `{}` status.".format(
                compute_id, response.status))

    while True:
        data = yield from response.content.read(512)
        if not data:
            break
        f.write(data)
    response.close()
    f.close()
    arcname = os.path.join("images", image_type, image)
    log.info("Saved {}".format(arcname))
    project_zipfile.write(temp_path, arcname=arcname, compress_type=zipfile.ZIP_DEFLATED)