title: how to close a file and delete that image file?
body: <pre><code>Imagename = objUser.UserID + filename;
  Imagepath = "D:\\Shop\\ShopMonkey\\Images" + Imagename;
  FileUpload.SaveAs(Path.Combine(@"D:\ShopMonkey_Web_21-6-12\ShopMonkey\Images", Imagename));
  
  objUser.UploadImagePath = Imagepath;
  objUser.UploadImagename = Imagename;
  
  System.Drawing.Image img1 = System.Drawing.Image.FromFile(Imagepath);
  
  System.Drawing.Image bmp1 = img1.GetThumbnailImage(50, 50, null, IntPtr.Zero);
   ThumbNailPath = "D:\\ShopMonkey_Web_21-6-12\\ShopMonkey\\ThumbNails" + Imagename;
  bmp1.Save(Path.Combine(@"D:\ShopMonkey_Web_21-6-12\ShopMonkey\ThumbNails", Imagename));
  objUser.UploadThumbnailPath = ThumbNailPath;
  </code></pre>
  
  <p>How to delete the image and thumbnail in other function? (Is it necessary to close that first or not?) </p>