restore  width() and height() as it is required for internal usage