Fix Equals method in ImageManager