title: When setting the image in a UITableViewCell I get <Error>: CGAffineTransformInvert: singular matrix
body: <p>I am populating a UITableView with Person objects stored in Core Data. Each person has a firstName, lastName, and image. The image is a relationship to a separate Image entity which has a property called data of type Transformable.  This is where I am storing the image associated with each Person.</p>
  
  <p>I am populating the table with:</p>
  
  <pre><code>- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
  {
      static NSString *CellIdentifier = @"PersonCell";
      UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
  
      // Configure the cell...
      Person *person = [self.fetchedResultsController objectAtIndexPath:indexPath];
  
      NSMutableString *nameString = [[NSMutableString alloc] init];
  
      if (person.firstName)
      {
          [nameString appendString:[NSString stringWithFormat:@"%@ ",person.firstName]];
      }
      if (person.lastName)
      {
          [nameString appendString:person.lastName];
      }
  
      cell.textLabel.text = nameString;
  
      UIImage *image = person.image.data;
      cell.imageView.image = image;
  
      return cell;
  }
  </code></pre>
  
  <p>When I run my app, I get the error:</p>
  
  <p>: CGAffineTransformInvert: singular matrix.</p>
  
  <p>once for each item in the table or database.</p>
  
  <p>if I comment out the line:</p>
  
  <pre><code>cell.imageView.image = image;
  </code></pre>
  
  <p>the error goes away.</p>
  
  <p>Any ideas?  This is the first time I've stored binary data in Core Data, maybe its not transforming right?</p>
  
  <p>This is how I"m storing the image:</p>
  
  <pre><code>UIImage *image = [info objectForKey:UIImagePickerControllerOriginalImage];
  self.person = [Person personWithImage:image inManagedObjectContext:self.context];
  </code></pre>
  
  <p>and</p>
  
  <pre><code>+ (Person *)personWithImage: (UIImage *)image inManagedObjectContext:(NSManagedObjectContext *)context
  {
      Image *newImage = [NSEntityDescription insertNewObjectForEntityForName:@"Image" inManagedObjectContext:context];
      newImage.data = image;
  
      Person *newPerson = [NSEntityDescription insertNewObjectForEntityForName:@"Person"
                                                      inManagedObjectContext:context];
      newPerson.image = newImage;
  
      return newPerson;
  }
  </code></pre>
  
  <p>thanks,</p>
  
  <p>Gerry</p>