add resize image before compare. Qiu