Add width and height attributes to svg elements