sp_filt_mkII: clean up some cruft, add debug options

Clean up command line passing cruft left over from code I adapted this from.
Add some debug options to dump filter processing images.