Add width and height attributes to img element.