Use getBounds() globally