 			screenSize.height -= 13.0 * 2.0 + 32.0
 			//screenSize.height -= 32.0
 			
-			imageSize?.width = min((imageSize?.width)!, screenSize.width)
-			imageSize?.height = min((imageSize?.height)!, screenSize.height)
+			imageSize.width = min(imageSize.width, screenSize.width)
+			imageSize.height = min(imageSize.height, screenSize.height)
 		}
 		
 		//imageSize.width -= 13.0 * 2.0 + 8.0

		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
