Automatic focus algorithms for TDI X-Ray image reconstruction