   (:require [vignette.storage.protocols :refer :all]
             [org.httpkit.client :as http]
             [vignette.util.filesystem :as fs]
-            [clojure.java.io :as io]))
+            [clojure.java.io :as io]
+            [vignette.media-types :as mt]))
 
 (defn- parse-content-disp
   [header]

            (first-available (rest image-urls))))))))

(defrecord StaticImageStorage [static-image-url] ImageStorageProtocol
  (save-thumbnail [_ _ _] nil)
  (get-thumbnail [_ _] nil)
  (save-original [_ _ _] nil)

  (get-original [_ original-map]
    (let [uuid (:uuid original-map)

    (if-let [uuid (:uuid image-map)]
      (let [static-image-response (http/head (static-image-url uuid))]
        (-> @static-image-response :status (= 200))))))


(defn create-static-image-storage [static-image-url]
  (->StaticImageStorage static-image-url))
