I have 5 pictures and i want to add to array

code:

```
#import "ViewController.h"

UIImageView *pic;
NSMutableArray *picArray;

@interface ViewController ()

@property (nonatomic, strong) NSMutableArray *picArray;

@end

@implementation ViewController
@synthesize picArray;

- (void)viewDidLoad
{
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.

    picArray = [[NSMutableArray alloc] init];

    pic = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 50, 75)];
    pic.image = [UIImage imageNamed:@"pic1.png"];
    pic.center = CGPointMake(100, 110);
    [picArray addObject:pic];

    pic.image = [UIImage imageNamed:@"pic2.png"];
    pic.center = CGPointMake(100, 120);
    [picArray addObject:pic];

    pic.image = [UIImage imageNamed:@"pic3.png"];
    pic.center = CGPointMake(100, 130);
    [picArray addObject:pic];

    pic.image = [UIImage imageNamed:@"pic4.png"];
    pic.center = CGPointMake(100, 140);
    [picArray addObject:pic]; 

    pic.image = [UIImage imageNamed:@"pic5.png"];
    pic.center = CGPointMake(100, 150);
    [picArray addObject:pic]; 

    pic = [picArray objectAtIndex:0];

    pic.center = CGPointMake(200, 100);
    [self.view addSubview:pic];

}

```

When I build and run this code I see only last picture of my array only pic5.png
regardless of the index

When I used NSString in my array all ok, but in I used images no(