         
         // hide the imageview while setting the stage
         imageView2.alpha = 0.0
+        
+        // reset to identity transform
+        imageView2.transform = CGAffineTransform.identity
         
         // set the boundaries for the image on the left side
         imageView2.frame = CGRect(x: screenWidth , y: 0, width: screenWidth, height: screenHeight)

                transY =  transY / 3
            }
            

            // direction change and we have to reset the preview image position?
            if(transX > 0  &&  previewMode == previewStates.initiailzedRight){
                setPreviewLeft()

                    return
                }
                
                

                
                // hide the preview image before setting the real image...
                self.imageView2.alpha = 0
                
                self.imageView.image = imageResult

                
                //self.imageView.image = image! as UIImage
                print("detail image was loaded")
