         let screenHeight = self.scrollView!.frame.height
         
         for i in 0..<n {
-            self.imageViews[i].frame = CGRectMake(screenWidth * CGFloat(i + 1), 0, screenWidth, screenHeight)
+            self.imageViews[i].frame = CGRectMake(screenWidth * CGFloat(i), 0, screenWidth, screenHeight)
         }
     }
     

    private func setupPhotos() {
        
        let n = self.imageUrls.count
        let screenWidth = self.frame.width
        
        // reset
        self.imageViews = [UIImageView]()
        
        for i in 0..<n {
            let imageView = UIImageView(frame: CGRect(x: screenWidth * CGFloat(i + 1), y: 0, width: screenWidth, height: self.frame.height))
            imageView.contentMode = UIViewContentMode.ScaleAspectFill
            let imageUrl = self.imageUrls[i]
            let url = NSURL(string: imageUrl)!
            imageView.sd_setImageWithURL(url, placeholderImage: self.placeholderImage)
            
            imageView.clipsToBounds = true
            self.imageViews.append(imageView)
            
//            print("[CarouselView setupPhotos] photo with url: \(imageUrl), imageView frame: \(imageView.frame)")
            self.scrollView!.addSubview(imageView)
        }
        
        if n > 1 {
            // add 1st pic to end for circular scroll
            let imageView = UIImageView(frame: CGRect(x: screenWidth * CGFloat(n), y: 0, width: screenWidth, height: self.frame.height))
            imageView.contentMode = UIViewContentMode.ScaleAspectFill
            let imageUrl = self.imageUrls.first
            let url = NSURL(string: imageUrl!)!
            imageView.sd_setImageWithURL(url, placeholderImage: self.placeholderImage)
            
            self.imageViews.append(imageView)
            self.scrollView!.addSubview(imageView)
        }
        
    }
    
    // MARK: Timer

            self.scrollView!.setContentOffset(CGPoint(x: offset.x + self.frame.width, y: 0), animated: true)
        }
    }
}

// MARK: Scrolling
