Spatiotemporal control of THz pulses by shaping the laser beam transverse profile in a non linear rectifying crystal