fix boundary cases for findimage