change temporary file type.
add gifsicle support