private functions. drawModel takes plotting options as a parameter.