fix img not resized to fit chat box window.