diff --git a/kindlecomicconverter/comic2ebook.py b/kindlecomicconverter/comic2ebook.py
index ba1e1ab..0d6aeb2 100755
--- a/kindlecomicconverter/comic2ebook.py
+++ b/kindlecomicconverter/comic2ebook.py
@@ -127,10 +127,10 @@ def buildHTML(path, imgfile, imgfilepath, imgfile2=None):
# this display none div fixes formatting issues with virtual panel mode, for some reason
'
.
\n',
])
- f.write(f'
')
+ f.write(f'
\n')
if imgfile2:
- f.write(f'
')
- f.write("\n\n")
+ f.write(f'
\n')
+ f.write("\n")
if options.iskindle and options.panelview:
if options.autoscale:
size = (getPanelViewResolution(imgsize, deviceres))
@@ -447,7 +447,11 @@ def buildEPUB(path, chapternames, tomenumber, ischunked, cover: image.Cover, len
"display: block;\n",
"margin: 0;\n",
"padding: 0;\n",
- "}\n"])
+ "}\n",
+ "img {\n",
+ "display: block;\n",
+ "}\n",
+ ])
if options.iskindle and options.panelview:
f.writelines(["#PV {\n",
"position: absolute;\n",