title: BitmapImage in WPF does lock file
body: <p>I use:</p>
  
  <pre><code>Dim bmi As New BitmapImage(New Uri(fiInfo.FullName, UriKind.Absolute))
  bmi.CacheOption = BitmapCacheOption.OnLoad
  </code></pre>
  
  <p>this does not <a href="https://stackoverflow.com/questions/5116260/c-4-0-unlock-image-after-creating-bitmapimage">Use OnLoad</a>
  And file still is locked to overwrite on harddisk. Any idea how to unlock?</p>
  
  <p>Regards</p>