update doc and example for width and height attrs