Generation of Size-Variable Image Template for Self-Position Estimation Considering Position Shift