                       )
           resize-fn (fn [width height]
                       (.resize renderer width height)
-                      (doall (map (partial center-container! canvas)
-                                  (map second layer))))
+                      (doall (map (fn [[name layer-obj]]
+                                    (center-container! canvas layer-obj
+                                                       (or (origins name) :center)))
+                                  layer)))
           expand-fn (fn [] (resize-fn (.-innerWidth js/window)
                                       (.-innerHeight js/window)))
 

  :expand        if true makes the canvas take the entire window
  :engine        can be :webgl :canvas or :auto (default :auto)
  :layers        A list of keywords to refer to layers, from bottom to top

  and either:


        ]
    {
     :stage stage
     :origins origins
     :layers layers
     :layer
     (into {}
