Update blackPaint() function