public void Dispose()
 {
     img.Dispose();
     GC.SuppressFinalize(this);
 }