Set renderer in the constructor