Practical Algorithm Design for the FFT-based Robust Image Registration Method