Change img output to use the outdir variable in saveGIF