added the state object as a parameter to visualizer static/object
painters to provide more flexibility in painting mechanics