 
 (defn save-file-and-get-url [data file-name extention]
   (if-let [folder (:saving-folder @state/options)]
-    (let [new-file-name (rast/get-file-name-hash file-name)
+    (let [new-file-name (rastr/get-file-name-hash file-name)
           path (str folder "/" new-file-name extention)]
       (fs/mkdirs folder)
       (io/copy data (io/file path))

        (if ok
          (if (= response-type "base64")
            (if (params "save")
              (save-file-and-get-url (rast/to-base64 result) (get-file-name params) ".base64")
              (json-success (rast/to-base64 result)))
            (if (params "save")
              (save-file-and-get-url result (get-file-name params) ".jpg")
              (file-success result (get-file-name params) ".jpg")))

        (if ok
          (if (= response-type "base64")
            (if (params "save")
              (save-file-and-get-url (rastr/to-base64 result) (get-file-name params) ".base64")
              (json-success (rastr/to-base64 result)))
            (if (params "save")
              (save-file-and-get-url result (get-file-name params) ".pdf")
              (file-success result (get-file-name params) ".pdf")))
