Moved volume viewer rendering code into its own module.