viewer export: use NSImage rather than CGImageRef