private void TargetImage_MouseLeftButtonUp(object sender, MouseButtonEventArgs e)
 {
     if (_mouseCaptured)
     {
         TargetImage.ReleaseMouseCapture();
         _mouseCaptured = false;
     }
     if (!_drawingChanged)
     {
         return;
     }
     _drawingChanged = false;
     _drawingManager.Record();
 }