Handle standard I/O instead of using exec-buffer

Jpegtran supports stdin/stdout.