Adding invalidatePaint for CanvasNode (compatibility)