             scaledProgressWidth = CGFloat(progressSamples - zoomSamples.lowerBound) / CGFloat(zoomSamples.count)
         }
         let childFrame = CGRect(x: frame.size.width * scaledX, y: 0, width: frame.size.width * scaledWidth, height: frame.size.height)
-        image.frame = childFrame
+        imageView.frame = childFrame
         highlightedImage.frame = childFrame
         clipping.frame = CGRect(x: 0, y: 0, width: frame.size.width * scaledProgressWidth, height: frame.size.height)
         clipping.isHidden = progressSamples <= zoomStartSamples
-        print("\(frame) -- \(image.frame)")
+        print("\(frame) -- \(imageView.frame)")
     }
 
     func renderAsset() {

                let status = self.asset!.statusOfValue(forKey: "duration", error: &error)
                switch status {
                case .loaded:
                    self.image.image = nil
                    self.highlightedImage.image = nil
                    self.progressSamples = 0
                    self.zoomStartSamples = 0

            self.plotLogGraph(samples, maximumValue: sampleMax, zeroValue: self.noiseFloor, imageHeight: heightInPixels) {
                (image, selectedImage) in
                DispatchQueue.main.async {
                    self.imageView.image = image
                    self.highlightedImage.image = selectedImage
                    self.cachedSampleRange = renderStartSamples ..< renderEndSamples
                    self.renderingInProgress = false
