CGRect myImageRect = CGRectMake(0.0f, 0.0f, 300.0f, 250.0f);
UIImageView *imageview = [[UIImageView alloc] initWithFrame:myImageRect];
[imageview setImage:[UIImage imageNamed:@"image1.jpg"]];
imageview.opaque = YES; // explicitly opaque for performance
[self.view addSubview:imageview];