            (org.openqa.selenium.chrome ChromeOptions ChromeDriver)
            (java.util ArrayList)
            (org.openqa.selenium.remote DesiredCapabilities)
-           (org.openqa.selenium.phantomjs PhantomJSDriver PhantomJSDriverService)))
+           (org.openqa.selenium.phantomjs PhantomJSDriver PhantomJSDriverService)
+           (javax.imageio ImageIO)
+           (java.io ByteArrayInputStream ByteArrayOutputStream)
+           (java.awt.image BufferedImage)))
 
 
 ;=======================================================================================================================

              (catch Exception e (str "Failed to take SVG Structure\n" (.getMessage e))))

            screenshot (.getScreenshotAs d OutputType/BYTES)

            error (some #(when (not (nil? %)) %) [startup binary script waiting])]


            {:ok false :result error})
          {:ok true :result screenshot})))))


(defn svg-to-png [svg quit-ph exit-on-error width height]
  (if-let [driver (if quit-ph (create-driver) (get-free-driver))]
    (let [svg (rasterizator/clear-svg svg)
