TAG diffrentiable painting pipeline