Increasing stability by changing size of detecting image