Added boundingBox calculations using a simple rectangle method.