img: Support hspace and vspace attributes.