Minor improvement of the "bbox" snippet.

Check &textwidth parameter and draw a box of the corresponding width.