added im_find_nans