Add rectangle process, filename arg

I implemented the new contour detect function, both rectangles can be
isolated. I also implemented the file location command line argument.