     (if (some? value)
       (= "true" value)
       value)))
+
+(defn ->service-image-details
+  [image-name]
+  (let [separator-pos (str/last-index-of image-name ":")
+        length (count image-name)]
+    {:name (subs image-name 0 separator-pos)
+     :tag  (subs image-name (inc separator-pos) length)}))
 
 (defn ->service
   [service tasks nodes networks]

      :updatedAt (date (:UpdatedAt service))
      :registry {:name (:swarmpit.service.registry.name service-labels)
                 :user (:swarmpit.service.registry.user service-labels)}
      :repository {:image       image-name
                   :imageDigest image-digest
                   :name        (first image-segments)
                   :tag         (second image-segments)}
      :serviceName service-name
      :mode service-mode
      :replicas replicas

        image (get-in service-task-template [:ContainerSpec :Image])
        image-info (str/split image #"@")
        image-name (first image-info)
        image-digest (second image-info)]
    (array-map
      :id service-id
      :version (get-in service [:Version :Index])
