Added method to calculate a bounding box around shapes.
Merge branch 'oosd_danny'