updated recursive_pixel_identification with helpful comments