added support for width and height