title: How to fix ListView.LargeImageList showing images twice
body: <p>I am working on a piece of software, which compares memes and helps users organize memes on their computer. As a part of this I am using <code>Windows.Forms</code> to build a UI. This UI lets the user add folders to be checked for images, which can be compared to a set of known meme templates.
  My issue arises when I try to show the user the found images. To do this I am using a <code>ListView</code> and the property <code>LargeImageList</code> to contain a tuple of the image and the name of the image file.</p>
  
  <p>Here is the piece of code in question:  </p>
  
  <pre><code>private void button1_Click(object sender, EventArgs e)
  {
      int i = 0;
      var ic = new ImageCollection();
      var fbd = new FolderBrowserDialog();
      fbd.Description = "Select meme folder or image.";
      if (fbd.ShowDialog() == DialogResult.OK)
      {
          string[] files = Directory.GetFiles(fbd.SelectedPath);
          foreach (var file in files)
          {
              if (!ic.CheckIfImage(file)) continue;
              imageList1.Images.Add(Image.FromFile(file));
  
          }
  
          foreach (var file in files)
          {
              listView1.Items.Add($"{Path.GetFileNameWithoutExtension(file)}", i++);
          }
      }
  }
  </code></pre>
  
  <p><a href="https://imgur.com/bIwdXv5" rel="nofollow noreferrer">This</a> is an example of what the user sees when they first load in a folder. When the user tries to load in another folder <a href="https://imgur.com/p2WQT8h" rel="nofollow noreferrer">this</a> happens. It shows the images from the first folder, with the names of the image files from the second folder.</p>
  
  <p>Does anyone know a fix for this issue? I have tried a variety of options in order to get around the issue. All from trying to clear the <code>ImageList</code> used to contain the images, to trying my hand at controlling when the <code>ListView</code> updates. None of this has worked. I have also tried googling the issue, but with no luck of finding a fix.</p>
  
  <p>Thank you in advance.</p>