Fixed getDrawMode() bug.
Merge branch 'master' into gh-pages