title: NSMutableArray index mixed up
body: <p>I'm currently trying the <code>iCarousel</code> <code>Multiple Carousel</code> example.
  Here in my array, I've add images with NSMutableDictionary:</p>
  
  <p>I have two of these: ( myImages and myImages2 for my two slot in carousel loaded in ViewDidLoad)</p>
  
  <pre><code>self.myImages = [NSMutableArray array];
  for(int i = 0; i &lt;= 10; i++) 
  { 
      NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
      NSString *documentsDir = [paths objectAtIndex:0];
  
      NSString *savedPath = [documentsDir stringByAppendingPathComponent:[NSString stringWithFormat:@"myImages%d.png", i]]; 
      if([[NSFileManager defaultManager] fileExistsAtPath:savedPath]){ 
          NSMutableDictionary *container = [[NSMutableDictionary alloc] init];
          [container setObject:[UIImage imageWithContentsOfFile:savedPath] forKey:@"image"];
          [container setObject:[NSNumber numberWithInt:i] forKey:@"index"];
          [images addObject:container];
          [container release]; // if not using ARC 
      } 
  }
  </code></pre>
  
  <p>in my iCarousel:</p>
  
  <pre><code>- (UIView *)carousel:(iCarousel *)carousel viewForItemAtIndex:(NSUInteger)index reusingView:(UIView *)view
  {
      if (carousel == carousel1)
      {
          NSDictionary *obj = [items1 objectAtIndex:index];
          view = [[UIImageView alloc] initWithImage:[obj objectForKey:@"items1"]];
          view.tag = index;
      }else
      {
          NSDictionary *obj = [items2 objectAtIndex:index];
          view = [[UIImageView alloc] initWithImage:[obj objectForKey:@"items2"]];
          view.tag = index;
      }
  
      return view;
  }
  </code></pre>
  
  <p>In another View, these arrays are also loaded, the user has a chance to pick an image to compare to with,</p>
  
  <p>when an user pick an image an int equivalent to its tag is pass to where my two Carousel is.</p>
  
  <p>Here is how I compare them:</p>
  
  <pre><code>NSInteger image = [prefs integerForKey:@"image"];
  NSInteger image1 = [prefs integerForKey:@"image2"];
  
          if (image == [(UIImageView*)[self.carousel1 currentItemView] tag] || image2= [(UIImageView*)[self.carousel2 currentItemView] tag] || ) {
  </code></pre>
  
  <p>I delete an index this way:</p>
  
  <pre><code>    NSInteger index = carousel1.currentItemIndex;
      [carousel1 removeItemAtIndex:index animated:YES];
      [items1 removeObjectAtIndex:index]; 
  </code></pre>
  
  <p>I think I'm deleting it the wrong away, because the index arent updated, what i wanted is to maintain its index not adjust like this images right here:</p>
  
  <p><a href="https://stackoverflow.com/questions/11203568/deleting-in-nsmutablearray">Deleting in NSMutableArray</a></p>