Tools for source size calculation from 2D Talbot images