New method of rotating bounding box working.
Merge branch 'peter'