Make imgopt executable
Preserve original file permissions and owners
Fixes #3, this checks to see if we are being run interactively, and if so, output what we are doing
Fixes #2, this fixes the stat format for BSD versions.
Fixes #4, this reduces the number of trials very aggressively for optipng, limiting it to only attempt trials that are likely to be the best