use image magick to convert .jpeg to .gif