private void loadPictureButton_Click(object sender, EventArgs e)
        {
            String strUrl = "";

            pattern = UserInput.imageInput(out strUrl);
            pictureLocationTextBox.Text = strUrl;
        }
        private void loadPictureButton_Click(object sender, EventArgs e)
        {
            String strUrl = "";

            pattern = UserInput.imageInput(out strUrl);
            pictureLocationTextBox.Text = strUrl;
            bParams.pattern             = new Bitmap(Image.FromFile(strUrl));
            showPreview();
        }