void removeImagePreview(ImagePreviewControl imagePreview)
 {
     resultsFlowLayoutPanel.Controls.Remove(imagePreview);
 }
        /// <summary>
        /// Adds an image preview to the results panel.
        /// </summary>
        /// <param name="image"></param>
        /// <param name="title"></param>
        /// <param name="showTitle"></param>
        /// <param name="showButtons"></param>
        public void AddImagePreview(Image image, string title, bool showTitle, bool showButtons)
        {
            ImagePreviewControl pr = new ImagePreviewControl(image, title, showTitle, showButtons);
            pr.ImageDoubleClick += new EventHandler(imagePreview_DoubleClick);
            pr.KeepImage += new EventHandler(this.imagePreview_KeepImage);
            pr.ReplaceImage += new EventHandler(this.imagePreview_ReplaceImage);

            resultsFlowLayoutPanel.Controls.Add(pr);
        }