Update width and height