Improving the accuracy of mass reconstructions from weak lensing: local shear measurements