Implemented rotation of bounding boxes.