Fix img with display: block. Fixes text/image overflow on wikipedia.

Ref: #2554