    [additional-features (reaction (:additionalFeatures @phone))]])
 
 (defn phone-page [{phone-id :phone-id}]
-  (let [phone (re-frame/subscribe [:phone-query phone-id])]
+  (let [phone (re-frame/subscribe [:phone-query phone-id])
+        image-url (re-frame/subscribe [:selected-image-url phone-id])]
     (fn []
       [:div
-       [:img {:src (first (:images @phone))
+       [:img {:src @image-url
               :class "phone"}]
        [:h1 (:name @phone)]
        [:p (:description @phone)]

   (reaction (:phones @db))))  ;; pulls out :phones

(re-frame/register-sub
 :search-input
 (fn [db]
   (reaction (:search-input @db))))

(re-frame/register-sub
 :phone-details

  [:ul {:class "phone-thumbs"}
   (for [image (:images @phone)]
     ^{:key image} [:li [:img {:src image
                               :class "phone"
                               :on-click #(re-frame/dispatch [:set-image image])}]])])

(defn availability
  [availability]
