added width and height support