add width and height attributes

* add width and height attributes to widget media