diff --git a/res/css/views/rooms/_EventTile.pcss b/res/css/views/rooms/_EventTile.pcss
index 6786d94511..810a00ebdd 100644
--- a/res/css/views/rooms/_EventTile.pcss
+++ b/res/css/views/rooms/_EventTile.pcss
@@ -887,6 +887,10 @@ $left-gutter: 64px;
     &.markdown-body img {
         object-fit: contain;
         object-position: left top;
+
+        /* Override the default colors of the 'github-markdown-css' library 
+        (#fff for light theme, #000 for dark theme) to match the inherited theme */
+        background-color: inherit !important;
     }
 
     .mx_EventTile_clamp & {