added support for height and width attributes