Fix and optimize bounding box invalidation.
Merge pull request #690 from tobeytailor/display

Fix and optimize bounding box invalidation.