More speed-ups.

Python deepcopy is very slow.  Knowing the range of set pixels on each
line allows faster computation.
More optimizations.

Lots of calls to max, min, and other functions.  Chnaging this gets some
speed.
Fixed a bug if orient is turned off and not multiprocessing.