private void CloseBitmap()
 {
     if (_bitmapSource != null)
     {
         _bitmapSource.Close();
     }
 }