Modified to match the changes in the code to use vtkPanel as the primary rendering surface.