private void pictureToolStripMenuItem_Click(object sender, EventArgs e)
        {
            InsertImageDialog dlgInsertImage = new InsertImageDialog();

            dlgInsertImage.ShowDialog();
            if (dlgInsertImage.DialogResult == DialogResult.OK)
            {
                string location   = dlgInsertImage.ImageLocation;
                string id         = dlgInsertImage.ImageID;
                string altText    = dlgInsertImage.AlternativeText;
                int    borderSize = dlgInsertImage.BorderSize;
                int    width      = dlgInsertImage.ImageWidth;
                int    height     = dlgInsertImage.ImageHeight;

                Thread insertImageThread = new Thread(new ThreadStart(() =>
                {
                    builder.InsertImage(location, id, borderSize, altText, width, height);
                }));

                insertImageThread.Start();
                modifiedDocument = true;
            }
        }
        private void pictureToolStripMenuItem_Click(object sender, EventArgs e)
        {
            InsertImageDialog dlgInsertImage = new InsertImageDialog();
            dlgInsertImage.ShowDialog();
            if (dlgInsertImage.DialogResult == DialogResult.OK)
            {
                string location = dlgInsertImage.ImageLocation;
                string id = dlgInsertImage.ImageID;
                string altText = dlgInsertImage.AlternativeText;
                int borderSize = dlgInsertImage.BorderSize;
                int width = dlgInsertImage.ImageWidth;
                int height = dlgInsertImage.ImageHeight;

                Thread insertImageThread = new Thread(new ThreadStart(() =>
                    {
                        builder.InsertImage(location, id, borderSize, altText, width, height);
                    }));

                insertImageThread.Start();
                modifiedDocument = true;
            }
        }