Added inversion parameter to the draw method.