title: NSCoding, save image path instead of actual image
body: <pre><code>@property (strong) UIImage *thumbImage;
  </code></pre>
  
  <p>..</p>
  
  <pre><code>albumData *album1 = [[albumData alloc]initWithTitle:@"Eminem" style:@"123" thumbImage:[UIImage imageNamed:@"1.jpeg"]];
  </code></pre>
  
  <p>..</p>
  
  <pre><code>- (void)encodeWithCoder:(NSCoder *)coder {
      NSData *image = UIImagePNGRepresentation(_thumbImage);
      [coder encodeObject:(image) forKey:@"thumbImageData"];
  
  }
  
  - (id)initWithCoder:(NSCoder *)coder {
      NSData *imgData = [coder decodeObjectForKey:@"thumbImageData"];
      _thumbImage = [UIImage imageWithData:imgData ];
      return self;
  }
  </code></pre>
  
  <p>Right now I'm using the above code to save data inside a plist file. How should I change the code in order to save just the image path \ name instead of saving the actual picture.</p>