layout: Store image dimensions inside image boxes instead of going to
the DOM for them.
auto merge of #1399 : pcwalton/servo/store-image-dimensions, r=kmcallister

the DOM for them.

r? @kmcallister