support for NSView and NSImage