to_gif function tweaks, added Gifsicle integration