Instruments is showing that i get a memory leak right there:
-(id) copyWithZone: (NSZone *) zone
{
Layer *copy = [[Layer allocWithZone:zone]init];
NSData *imageData = [[NSData alloc]initWithData:_image];
copy.image = imageData;
[imageData release];
return copy;
}
The image property is declared as it follows:
@property (nonatomic, retain) NSData *image;
Here is a screenshot of instruments, to prove that i am not lying.

Anyone see a problem in there?
Here is how we solved it, following the instructions given here.