public void Dispose() { bitmap.Dispose(); Disposable.ForEach(d => d.Dispose()); foreach (string file in TempFiles) { File.Delete(file); } }