         (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)))
+              (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")))

            [export-server.web.params-validator :as params-validator]

            [export-server.utils.rasterizator :as rastr]
            [export-server.utils.rasterizator :as rast]
    ;[export-server.browser.core :as browser]
            [export-server.browser.raw :as browser]
            [export-server.sharing.twitter :as twitter]
            [me.raynes.fs :as fs])

        (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) ".jpg")
              (file-success result (get-file-name params) ".jpg")))
