             metrics:metrics,
             views:views))
     }
+    
+    override func layoutSubviews()
+    {
+        DispatchQueue.main.async
+        { [weak self] in
+            
+            guard
+            
+                let bounds:CGRect = self?.bounds
+            
+            else
+            {
+                return
+            }
+            
+            self?.imageView.frame = bounds
+        }
+        
+        super.layoutSubviews()
+    }
 }

        scrollView.translatesAutoresizingMaskIntoConstraints = false
        scrollView.clipsToBounds = true
        scrollView.backgroundColor = UIColor.clear
        self.scrollView = scrollView
        
        let imageView:UIImageView = UIImageView(
            frame:controller.inRect)
        imageView.isUserInteractionEnabled = false
        imageView.clipsToBounds = true
        imageView.contentMode = UIViewContentMode.center

    private weak var controller:CPhotosAlbumPhoto!
    private weak var scrollView:UIScrollView!
    weak var imageView:UIImageView!
    private let kAnimationDuration:TimeInterval = 0.3
    
    convenience init(controller:CPhotosAlbumPhoto)
    {
