MAJOR update, and rewrite

Major overhaul, changed -resize to -scale, added settings for max width, max height, size to scale to.  Using -scale is a MAJOR performance enhancement and script runs 10x faster.