adding bounding boxes to ruby scripts