added cmdline parser to pixel_sorting.py