title: CALayer's image not showing up
body: <p>I am trying to use CALayer to display an image, but the image is not showing up. I've verified that 'image' is not nil, image.size is correct, and layer.contents is a valid CABackingStore.</p>
  
  <pre><code>- (void)viewDidLoad
  {
    [super viewDidLoad];
  
    layer = [[CALayer alloc] init];
    [self.view.layer addSublayer:layer];
    UIImage *image = [UIImage imageNamed:@"download.jpeg"];
    layer.bounds = CGRectMake(0, 0, image.size.width, image.size.height);
    layer.position = self.view.center;
    layer.contents = (id)image.CGImage;
  
    [layer setNeedsDisplay];
  }
  </code></pre>
  
  <p>What could be the problem here?</p>