         showsHorizontalScrollIndicator = false
         contentMode = UIViewContentMode.ScaleAspectFit
         addImages(photos)
+        
+        scrollRectToVisible(CGRectMake(endContentOffSet - frame.width, 0, frame.width, frame.height), animated: false)
     }
 
     required init(coder aDecoder: NSCoder) {

        if (lastContentOffsetX < scrollView.contentOffset.x) {
            
            println("moving >>>>>>>>")
        } else if (lastContentOffsetX == scrollView.contentOffset.x) {
            
            println("im in zero")
        } else {
            
            println("moving <<<<<<<<")
        }
        
        lastContentOffsetX = scrollView.contentOffset.x

    }
    
    func scrollViewDidEndDragging(scrollView: UIScrollView, willDecelerate decelerate: Bool){
    }
    
    
}

    
    var lastContentOffsetX:CGFloat
    var imageView:UIImageView?
    var endContentOffSet:CGFloat
    
    init(frame: CGRect, photos: [UIImage?]) {
    
        lastContentOffsetX = 0
        endContentOffSet = 0
        UIScrollView(frame: frame)
        super.init(frame: frame)
        delegate = self
