changed constructor to use different interface
removed ignoreRepaint field