private void Grid1_MouseLeftButtonUp(object sender, MouseButtonEventArgs e)
        {
            isDrawing = false;

            // Calculate rectangle cords/size
            BitmapSource bSource = ScreenCapturer.CaptureRegion((int)X, (int)Y, (int)W, (int)H);

            if (Settings.Default.AlwaysCopyToClipboard)
            {
                Clipboard.SetImage(bSource);
            }

            if (Settings.Default.AlwaysOpenToEditor)
            {
                new EditCaptureWindow(bSource).Show();
            }
            else
            {
                if (ScreenCapturer.Save(bSource))
                {
                    MainWindow.notification.ShowBalloonTip(this.Title, "File saved!", BalloonIcon.Info);
                }
                else
                {
                    MessageBox.Show("Oups! We couldn't save this file. Please check permissions.");
                }
            }

            this.Close();
        }