Added main visualize method to the visualizer.

Handles main logic for the creation and drawing of visualization
objects.