Use of polymorphism for render manager instead of huge switch case.

fixes #137