 
 (defn get-images [& limit]
   (let [images (if (seq limit)
-                  (sql-get-images-limit (get-db-spec) (first limit))
-                  (sql-get-all-images (get-db-spec)))]
+                 (sql-get-images-limit (get-db-spec) (first limit))
+                 (sql-get-all-images (get-db-spec)))]
     (map beef-up-image images)))
 
 (defn get-image-by-id 
   ([id] (get-image-by-id id 0))
   ([id user-id]
    (when-let [images (sql-get-image-by-id (get-db-spec) user-id id)]
-      (beef-up-image (first images)))))
+     (beef-up-image (first images)))))
 
 (defn add-image-to-db [image user-id]
   (sql-insert-image! (get-db-spec)

   :subprotocol "postgresql"
   :subname (get-in @config [:database :host])
   :user (get-in @config [:database :user])})

(defn hash-bcrypt [password]
  (BCrypt/hashpw password (BCrypt/gensalt)))

  (:import org.mindrot.jbcrypt.BCrypt))

(defqueries "sql/queries.sql")
(def config  (atom nil))
(def default-config {:upload-path nil
                     :thumb-path nil
                     :template-path nil
