 		{
 			if flag
 			{
-				scroll.setZoomScale(scale, animated: true)
+				preview.setZoomScale(scale, animated: true)
 			}
 			else
 			{
-				scroll.zoomScale = scale
+				preview.zoomScale = scale
 			}
 		}
 	}

		frame.origin.x = (view.frame.width - frame.width) / 2.0
		frame.origin.y = (view.frame.height - frame.height) / 2.0
		background.frame = frame
		
		scroll.zoomScale = 0.01
		
		repairImageZoom(useAnimation: true)
		alignImageAtCenter()
	}
	
	func createBackgroundImage(inputImage input:UIImage)->UIImage?

	
	override func didRotateFromInterfaceOrientation(fromInterfaceOrientation: UIInterfaceOrientation)
	{
		updateBackgroundImage()
		
		repairImageZoom()
		alignImageAtCenter()
	}
