 		
 		doubleTapRecognizer = UITapGestureRecognizer()
 		singleTapRecognizer = UITapGestureRecognizer()
+
 		//scroll visible
 		instantScrollView.showsHorizontalScrollIndicator = false
 		instantScrollView.showsVerticalScrollIndicator = false
+
 	}
 	
 	/**

		return newImage
	}
	
	/**
	 Centerizing content.
	 @param scrollView - UIScrollView

		
	}
	
	func setTheConstraints(subview:UIView, superView:UIView,hConstraints:String,vConstraints:String) {
		let views:Dictionary = ["subview":subview]
		let imageViewSize = instantScrollView.frame.size
		let imageViewSizesMetric = ["height":imageViewSize.height,"width":imageViewSize.width]
		subview.setTranslatesAutoresizingMaskIntoConstraints(false)
		superView.addSubview(subview)
		let vCons:Array = NSLayoutConstraint.constraintsWithVisualFormat("V:\(vConstraints)", options: NSLayoutFormatOptions(0), metrics: imageViewSizesMetric, views: views)
		let hCons:Array = NSLayoutConstraint.constraintsWithVisualFormat("H:\(hConstraints)", options: NSLayoutFormatOptions(0), metrics: imageViewSizesMetric, views: views)
		superView.addConstraints(vCons)
		superView.addConstraints(hCons)
	}
	
	/**
		This is for single tap tap to new view which has same features with the normal one
	*/
	public func singleTouchToNewView() {
		singleTapRecognizer = UITapGestureRecognizer(target: self, action: "singleTouchHandler")
		singleTapRecognizer.requireGestureRecognizerToFail(doubleTapRecognizer)

		instantScrollView.addGestureRecognizer(singleTapRecognizer)
	}
	
	func singleTouchHandler() {
		let screenSize:CGRect = UIScreen.mainScreen().bounds.standardizedRect
		var fullSizeView = UIView(frame: screenSize)
		//setting constraints of new full size view
		self.setTheConstraints(fullSizeView, superView: mainView, hConstraints: "|-0-[subview]-0-|", vConstraints: "|-0-[subview]-0-|")
		self.setTheConstraints(instantScrollView, superView: fullSizeView, hConstraints: "|-[subview]-|", vConstraints: "|-[subview]-|")
		self.setTheConstraints(instantImageView, superView: instantScrollView, hConstraints: "|-[subview]", vConstraints: "|-[subview]")
		
		instantScrollView.setNeedsLayout()
		instantScrollView.setNeedsDisplay()
		
		//adding pan recognizer
		var panGesture = UIPanGestureRecognizer(target: self, action: "panToFullScreen:")
		instantScrollView.addGestureRecognizer(panGesture)

	}
	
	
