diff --git a/webclient/room/room.html b/webclient/room/room.html
index e89bf670e369c319c57badf867295353067dbaa8..4d7417a80e2817d47f9008858caa7b075f5889db 100644
--- a/webclient/room/room.html
+++ b/webclient/room/room.html
@@ -41,7 +41,10 @@
                     <div class="bubble">
                         <span ng-hide='msg.content.msgtype !== "m.emote"' ng-bind-html="'* ' + (members[msg.user_id].displayname || msg.user_id) + ' ' + msg.content.body | linky:'_blank'"/>
                         <span ng-hide='msg.content.msgtype !== "m.text"' ng-bind-html="((msg.content.msgtype === 'm.text') ? msg.content.body : '') | linky:'_blank'"/>
-                        <img class="image" ng-hide='msg.content.msgtype !== "m.image"' ng-src="{{ msg.content.url }}"/>
+                        <div ng-hide='msg.content.msgtype !== "m.image"'
+                             ng-style="{ 'height' : (msg.content.body.h < 320) ? msg.content.body.h : 320}">
+                            <img class="image" ng-src="{{ msg.content.url }}"/>
+                        </div>
                     </div>
                 </td>
                 <td class="rightBlock">