Added Visualizer constructor to take as an argument the StateRenderLayer
object it should use.