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

                    }

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


                    }
                    it("should scale image to minimize") {
                        let scale = min(widthRatio, heightRatio)
                        viewPoint.x *= scale
                        viewPoint.y *= scale

