If you use garbage collection, use CFMakeCollectable(posterFrame). If you use traditional memory management, this is very simple:
return (CGImageRef)[(id)posterFrame autorelease];
CFTypeRef ( a CGImageRef) Objective-C, -autorelease, CGImageRef. , CFRetain() CFRelease().