Convert graph to GIF (smaller size)