diff --git a/components/JsonToHtml/renderOptions.tsx b/components/JsonToHtml/renderOptions.tsx
index 40122a9a8..7ebf1874e 100644
--- a/components/JsonToHtml/renderOptions.tsx
+++ b/components/JsonToHtml/renderOptions.tsx
@@ -347,7 +347,9 @@ export const renderOptions: RenderOptions = {
const image = insertResponseToImageVaultAsset(attrs)
const alt = image.meta.alt ?? image.title
- const width = parseInt(attrs.width.replaceAll("px", ""))
+ const width = attrs.width
+ ? parseInt(attrs.width.replaceAll("px", ""))
+ : image.dimensions.width
const props = extractPossibleAttributes(attrs)
return (