advanced_image_processing: In removing_lines, switched to using numpy.isnan instead of attempting to compare.