Rendering NSView into NSImage.

Note: This method is very power consuming, and you should use it only when the children opacity is important. In all other cases use a native AppKit API  `cacheDisplayInRect:toBitmapImageRep:`.