Fix closing X display in get_dimensions
Merge pull request #64 from glennw/fix-get-dimensions

Fix closing X display in get_dimensions