turnip: refactor CmdDraw* functions (and a few fixes)