Changed function for getting current bounding box to use visible area property.