Use vtkSmartPointer correctly