implement a redraw method. fixes #49.