       imageView.transform = .identity
       recenterImage(size: scrollView.contentSize)
     } else {
-      UIView.animate(withDuration: 0.7,
+      UIView.animate(withDuration: duration,
                      delay: 0,
                      usingSpringWithDamping: 0.7,
                      initialSpringVelocity: 0,

  }
  
  func recenterAfterRotation() {
    cancelCurrentImageDrag(true)
  }
  
  func recenterImage(size: CGSize) {

    }
  }

  private func cancelCurrentImageDrag(_ animated: Bool, duration: TimeInterval = 0.7) {
    animator?.removeAllBehaviors()
    attachmentBehavior = nil
    isDraggingImage = false
