         for i in 0..<numShow {
             let image = dataSource.photoColletionView?(self, imageAt: i)
             if let image = image {
+                images.append(image)
                 if i == 0 {
                     isVertical = image.size.width < image.size.height
                 }

    var margin: CGFloat = 1
    var maxImage = 4
    var photoViews: [PhotoView] = []
    
    weak open var dataSource: PhotoCollectionViewDataSource?
    weak open var delegate: PhotoCollectionViewDelegate?

            let view = photoViews.removeFirst()
            view.removeFromSuperview()
        }
        images.removeAll()
    }
    
    open func reloadData() {
