       {
        "AxisPositions" (when-let [axes (get-in event [:position :axes])] (JSONObject. axes))
        "Binning" (core getProperty (core getCameraDevice) "Binning")
+       "CameraBitDepth" (core getImageBitDepth)
        "Channel" (get-in event [:channel :name])
        "ChannelIndex" (:channel-index event)
        "ElapsedTime-ms" (if (state :start-time) (- (clock-ms) (state :start-time)) 0)

           [org.json JSONObject JSONArray]
           [java.util Date UUID]
           [java.text SimpleDateFormat]
           [ij ImagePlus])
   (:gen-class
     :name org.micromanager.AcqEngine


(def live-mode-running (ref false))


(defn enable-live-mode [^Boolean on]
      (if on
        (let [event (create-basic-event)
