diff --git a/gns3server/controller/drawing.py b/gns3server/controller/drawing.py
index a8ef4e31..d516b04f 100644
--- a/gns3server/controller/drawing.py
+++ b/gns3server/controller/drawing.py
@@ -73,7 +73,7 @@ class Drawing:
return data.decode()
except UnicodeError:
width, height, filetype = get_size(data)
- return "".format(b64=base64.b64encode(data).decode(), filetype=filetype, width=width, height=width)
+ return "".format(b64=base64.b64encode(data).decode(), filetype=filetype, width=width, height=height)
except OSError:
log.warning("Image file %s missing", filename)
return ""
@@ -172,7 +172,7 @@ class Drawing:
svg_changed = False
for prop in kwargs:
if prop == "drawing_id":
- pass # No good reason to change a drawing_id
+ pass # No good reason to change a drawing_id
elif getattr(self, prop) != kwargs[prop]:
if prop == "svg":
# To avoid spamming client with large data we don't send the svg if the SVG didn't change