/**
 * Given a dictionary of image names and their resolutions,
 * a specific resolution, and a list of images that have already been saved,
 * filter out the images that have the desired resolution and have not been saved.
 *
 * @param imageDict A dictionary of image names as keys and their resolutions as values.
 * @param resolution The desired resolution.
 * @param savedImages A list of images that have already been saved.
 * @return A list of image names that match the desired resolution and have not been saved.
 */
fun filterImages(imageDict: Map<String, Int>, resolution: Int, savedImages: List<String>): List<String> {

    val filteredImages = mutableListOf<String>()

    for ((image, res) in imageDict) {
        if (res == resolution && image !in savedImages) {
            filteredImages.add(image)
        }
    }

    return filteredImages
}
/**
 * Given a dictionary of image names and their resolutions,
 * a specific resolution, and a list of images that have already been saved,
 * filter out the images that have the desired resolution and have not been saved.
 *
 * @param imageDict A dictionary of image names as keys and their resolutions as values.
 * @param resolution The desired resolution.
 * @param savedImages A list of images that have already been saved.
 * @return A list of image names that match the desired resolution and have not been saved.
 */
fun filterImages(imageDict: Map<String, Int>, resolution: Int, savedImages: List<String>): List<String> {
/**
 * Given a dictionary of image names and their resolutions,
 * a specific resolution, and a list of images that have already been saved,
 * filter out the images that have the desired resolution and have not been saved.
 *
 * @param imageDict A dictionary of image names as keys and their resolutions as values.
 * @param resolution The desired resolution.
 * @param savedImages A list of images that have already been saved.
 * @return A list of image names that match the desired resolution and have not been saved.
 */
fun filterImages(imageDict: Map<String, Int>, resolution: Int, savedImages: List<String>): List<String> {

    val filteredImages = mutableListOf<String>()

    for ((image, res) in imageDict) {
        if (res == resolution && image !in savedImages) {
            filteredImages.add(image)
        }
    }

    return filteredImages
}