You could do this if you create your own Image class. Something like:
public class MyImage
{
string Path { get; private set; }
Image Image { get; private set; }
public MyImage (string path, Image image)
{
Path = path;
Image = image;
}
public bool Equals(MyImage secondImage)
{
if (secondImage == null)
{
return false;
}
return string.Compare(Path, secondImage.Path) == 0;
}
}
What this does is compare the paths used by two MyImages and if they are the same returns true;