Remove unused variable.
Make refresh more robust.

That is, check whether one of the things to refresh is null and don't
touch it then (useful for debugging when disabling the point display).
Support resizing.