Simple pixel sorting program.