diff --git a/src/ChatPage.cpp b/src/ChatPage.cpp
index 37d1354b66aeb6a5cf7ef85c9b334003b4675729..981e6b80b29318799b90beb8f322f7892538c387 100644
--- a/src/ChatPage.cpp
+++ b/src/ChatPage.cpp
@@ -325,8 +325,8 @@ ChatPage::ChatPage(QSharedPointer<UserSettings> userSettings, QWidget *parent)
                   QSize dimensions;
                   QString blurhash;
                   if (mimeClass == "image") {
-                          QImage img;
-                          img.loadFromData(bin);
+                          QImage img = utils::readImage(&bin);
+
                           dimensions = img.size();
                           if (img.height() > 200 && img.width() > 360)
                                   img = img.scaled(360, 200, Qt::KeepAspectRatioByExpanding);