         guard let styleMenuItem = sender as? NSMenuItem else {
             return
         }
+        saveStyle(style: styleMenuItem.title)
+    }
 
-        saveStyle(style: styleMenuItem.title)
+    func loadStatusImage(name: String) {
+        if let button = statusItem.button {
+            button.image = NSImage(named: name)
+            button.image!.size = NSMakeSize(18.0, 18.0)
+        }
     }
 }
 

        #if !DEBUG
            PFMoveToApplicationsFolderIfNecessary()
        #endif
        
        // register hotkey
        if hotkey != nil {

                pboard.declareTypes([NSRTFPboardType], owner: self)
                pboard.setData(data!, forType: NSRTFPboardType)
            }
        }
    }
    
