     }
     
     
-    private var pageContentsAlignment = VersoPageLayoutAttributes.PageContentsAlignment.Center
-    
     override public func layoutSubviews() {
         super.layoutSubviews()
         

            
            // TODO: make sure size is within bounds
            frame.origin.y = round(CGRectGetMidY(b) - frame.size.height/2)
            switch pageContentsAlignment {
            case .Center:
                frame.origin.x = round(CGRectGetMidX(b) - frame.size.width/2)
            case .Left:
                frame.origin.x = CGRectGetMinX(b)
            case .Right:
                frame.origin.x = CGRectGetMaxX(b) - frame.size.width
            }
        
            view.frame = frame

    
    
    override public func applyLayoutAttributes(layoutAttributes: UICollectionViewLayoutAttributes) {
        if let attrs = layoutAttributes as? VersoPageLayoutAttributes {
            
            var newContentMode = UIViewContentMode.Center
            
            switch attrs.contentsAlignment {
            case .Center:
                newContentMode = .Center
            case .Left:
                newContentMode = .Left
            case .Right:
                newContentMode = .Right
            }
            
            contentMode = newContentMode
        }
    }
}
