    [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)]

 (fn [db [_ phone-id]]
   (let [phone-details-reaction (reaction (:phone-details @db))]
     (reaction ((keyword phone-id) @phone-details-reaction)))))

(re-frame/register-handler
 :process-phones-response

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

(re-frame/register-sub
 :selected-image-url
 (fn [db [_ phone-id]]
   (let [phone (re-frame/subscribe [:phone-query phone-id])
         phone-details (re-frame/subscribe [:phone-details])
         images (reaction (:images @phone))]
     (reaction
      (if @phone-details
        (if-let [image-url (:selected-image-url @phone-details)]
          image-url
          (first @images)))))))

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