fix try_to_append_line for ImageBox
auto merge of #1463 : ksh8281/servo/img_new_line, r=pcwalton

````
<div>
   test
   <img src="test.jpeg"/>
</div>
````

if reduce window size, img is disapper.
this pr fixes this case.