fixed errors in feat and crop_rand_neg_patches