Allow VG_INVALID_HANDLE argument to vgSetPaint().
Set error on bad paintMode to vgSetPaint().
Merge pull request #32 from jacereda/master

Fix vgSetPaint()