Cleaned up main routine lots, streamlined rendering calls.  Added image save for chrome/firefox.