Added gzip option to tempimg.