                     }
 
                     it("should scale image to the view size") {
-                        var viewPoint = imagePoint
                         viewPoint.x *= widthRatio
                         viewPoint.y *= heightRatio
 

                    }
                    it("should be scale to maximize ratio") {
                        let scale = max(widthRatio, heightRatio)
                        var viewPoint = imagePoint
                        viewPoint.x *= scale
                        viewPoint.y *= scale


            var widthRatio : CGFloat!
            var heightRatio : CGFloat!
            let imagePoint = CGPointZero
            var viewPoint : CGPoint!

            beforeEach {
                let square = CGSize(width: 100, height: 100)
