added support for width and height
fixed issue with width support