Added functionality to draw a bounding box.