I need to add a watermark from recources to following code:
NSBitmapImageRep *bitmapRep = [[NSBitmapImageRep alloc] initWithData:[image TIFFRepresentation]];
NSData *imageData = [bitmapRep representationUsingType: NSJPEGFileType
properties: nil];
...
...
[imageData writeToFile:picturePath atomically:YES];
[image release];