 	{
 		super.viewDidLoad()
 		
+		view.clipsToBounds = true
+		
 		scroll = UIScrollView()
 		scroll.frame = UIScreen.mainScreen().applicationFrame;
 		scroll.contentSize = scroll.frame.size
 		scroll.minimumZoomScale = 0.01
 		scroll.maximumZoomScale = 2.00
 		scroll.delegate = self
-		
-		background = UIImageView()
-		view.addSubview(background)
 		view.addSubview(scroll)
 		
 		scroll.pinchGestureRecognizer.addTarget(self, action: "pinchUpdated:")

		alignImageAtCenter()
	}
	
	func createBackgroundImage(inputImage input:UIImage)->UIImage
	{
		let bounds = UIScreen.mainScreen().bounds
		let size = bounds.size
		
		let scale = max(size.width / input.size.width, size.height / input.size.height)
		
		UIGraphicsBeginImageContextWithOptions(size, false, 1.0 / scale)
		input.drawInRect(bounds)
		
		var data:UIImage = UIGraphicsGetImageFromCurrentImageContext()!

		UIGraphicsEndImageContext()
		
		var filter = CIFilter(name: "CIGaussianBlur")
		filter.setValue(data.CIImage, forKey: kCIInputImageKey)
		filter.setValue(10.0, forKey: kCIInputRadiusKey)
		return UIImage(CIImage: filter.outputImage)!
	}
	
	func doubleTapZoom(gesture:UITapGestureRecognizer)

	
	override func didRotateFromInterfaceOrientation(fromInterfaceOrientation: UIInterfaceOrientation)
	{
		repairImageZoom()
		alignImageAtCenter()
	}
	
	func viewForZoomingInScrollView(scrollView: UIScrollView) -> UIView?
