 			print("preferredContentSize \(imageSize)")
 		#endif
 		
-		imageView?.autoresizes = false
-		preferredContentSize = imageSize!
+		imageView.autoresizes = false
+		preferredContentSize = imageSize
 		
 		if let imageProperties = imageProperties {
 			imagePropertiesDidLoad?(imageProperties)

		view.layoutSubtreeIfNeeded()
		
		//imageView.zoomImageToFit(nil)
		imageView?.zoomImageToActualSize(nil)
		//view.superview
	}
	

	fileprivate func updateUIWithImage(_ image: CGImage, imageProperties: [NSString: AnyObject]?) {
		let view = self.view
		
		let imageView = self.imageView!
		imageView.setImage(viewedCoreGraphicsImage, imageProperties: imageProperties)
		//imageView.zoomImageToActualSize(nil)
		
		var imageSize = imageView.imageSize()
		#if DEBUG
			print("imageSize \(imageSize)")
		#endif
