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

                }

                it("should not stretch the image") {
                    var viewPoint = imagePoint
                    viewPoint.x += viewSize.width / 2  - imageSize.width  / 2
                    viewPoint.y += viewSize.height / 2 - imageSize.height / 2


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

