Convert images to gif file