Changed image type to gif.