Add img dimensions to img tags.