title: Can a CGImage be added to the contents property of a CAShapeLayer?
body: <p>I have a custom view with a layerClass override like:</p>
  
  <pre><code>+ (Class) layerClass
  {
      return [CAShapeLayer class];
  }
  </code></pre>
  
  <p>I want to be able to add a CGImage to the contents property like so:</p>
  
  <pre><code>- (void) animateView
  {
      UIImage *layerImage = ...;
      CAShapeLayer *layer = (CAShapeLayer *)self.layer;
      layer.contents = layerImage.CGImage;
  
      //....Do other fun animations here
  }
  </code></pre>
  
  <p>Are there other properties I need to set, or other ways to get the shape layer to render the contents of the image for animation?</p>