Add config class to the render class

Some config parameters are related to the rendering. We need to give access to the config class to the render function.

Edited by Olivier Jourdan