F67: Update BiriPaint.

Also fixed some code errors in BiriPaint