diff --git a/flatland/utils/graphics_pil.py b/flatland/utils/graphics_pil.py
index 6fb83844ddc66999cf7d4aee33d5f27b8bd0e37e..496433c6067ee975330530dbb7adf5e64ffcef8a 100644
--- a/flatland/utils/graphics_pil.py
+++ b/flatland/utils/graphics_pil.py
@@ -19,16 +19,15 @@ def enable_windows_cairo_support():
         os.environ['PATH'] = os.environ['PATH'] + ';' + default_os_path
         if ctypes.util.find_library('cairo') is not None:
             print("cairo installed: OK")
-
 enable_windows_cairo_support()
 from cairosvg import svg2png
+from screeninfo import get_monitors
 
-from IPython.display import SVG
-
-from flatland.core.transitions import RailEnvTransitions
 # from copy import copy
+from flatland.core.transitions import RailEnvTransitions
+
+
 
-from screeninfo import get_monitors
 
 class PILGL(GraphicsLayer):
     def __init__(self, width, height, nPixCell=60):
@@ -252,9 +251,6 @@ class PILSVG(PILGL):
     def pilFromSvgFile(self, sfPath):
         with open(sfPath, "r") as fIn:
             bytesPNG = svg2png(file_obj=fIn, output_height=self.nPixCell, output_width=self.nPixCell)
-
-            image = SVG(url=sfPath)
-        
         with io.BytesIO(bytesPNG) as fIn:
             pil_img = Image.open(fIn)
             pil_img.load()