Implemented a debug mode to display viewbox info.