delegate void setImageIsReadyCallback(); //used as it is invoked from separate thread!

        /// <summary>
        /// helper to fire the ImageReady event
        /// </summary>
        private void ImageIsReady()
        {
            if (this.InvokeRequired)
            {
                setImageIsReadyCallback d = new setImageIsReadyCallback(ImageIsReady);
                this.Invoke(d, null);
            }
            else
            {
                OnImageReady(new EventArgs());
            }
        }
        delegate void setImageIsReadyCallback(); //used as it is invoked from separate thread!

        private void ImageIsReady()
        {
            if (this.InvokeRequired)
            {
                setImageIsReadyCallback d = new setImageIsReadyCallback(ImageIsReady);
                this.Invoke(d, null);
            }
            else
            {
                OnImageReady(new EventArgs());
                //load saved image??
                loadImage(_TempFileName);
                this.ImagerPreview.Refresh(); //refresh control
            }
        }
        delegate void setImageIsReadyCallback(); //used as it is invoked from separate thread!

        private void ImageIsReady()
        {
            if (this.InvokeRequired)
            {
                setImageIsReadyCallback d = new setImageIsReadyCallback(ImageIsReady);
                this.Invoke(d, null);
            }
            else
            {
                OnImageReady(new EventArgs());
                //load saved image??
                loadImage(_TempFileName);
                this.ImagerPreview.Refresh(); //refresh control
            }
        }
 delegate void setImageIsReadyCallback(); //used as it is invoked from separate thread!
 /// <summary>
 /// helper to fire the ImageReady event
 /// </summary>
 private void ImageIsReady()
 {
     if (this.InvokeRequired)
     {
         setImageIsReadyCallback d = new setImageIsReadyCallback(ImageIsReady);
         this.Invoke(d, null);
     }
     else
     {
         OnImageReady(new EventArgs());
     }
 }