changed graph to gif