A robust implementation for 2D Digital Image Correlation