         let pasteboard = NSPasteboard.general
         pasteboard.declareTypes([NSPasteboard.PasteboardType.string], owner: nil)
         pasteboard.setString(textView.string, forType: NSPasteboard.PasteboardType.string)
+    }
+    
+    func imageFromScene() -> NSImage? {
+        var isDarkTheme = false
+        if #available(OSX 10.14, *) {
+            isDarkTheme = NSAppearance.current.name == NSAppearance.Name.darkAqua || NSAppearance.current.name == NSAppearance.Name.vibrantDark
+        } else {
+            isDarkTheme = NSAppearance.current.name == NSAppearance.Name.vibrantDark
+        }
+        drawingScene?.backgroundColor = isDarkTheme ? .darkGray : .white
+        let texture = skview?.texture(from: drawingScene!)
+        drawingScene?.backgroundColor = .clear
+
+        if let texture = texture {
+            let img2 = texture.cgImage()
+            let image = NSImage(cgImage: img2, size: drawingScene!.size)
+
+            return image
+        }
+
+        return nil
     }
     
     @objc fileprivate func setupTextView() {

    }
    
    @IBAction func shareAction(_ sender: NSButton) {
        let sharedItems = [textView.string];
        
        let servicePicker = NSSharingServicePicker(items: sharedItems)
        servicePicker.delegate = self

        drawButton.state = drawingView.isHidden == false ? .on : .off
    }
    
    func copyContent() {
        if drawingView.isHidden == false {
            
            if let image = imageFromScene() {
                NSPasteboard.general.clearContents()
                NSPasteboard.general.writeObjects([image])
            }
