Fix issue where the chat box does not scroll down when an image is loaded (#1258)