nanshe/advanced_image_processing.py: In remove_zeroed_lines, replace expensive numpy.where commands with masking input array.