wrote script to turn pngs into gifs, but it segfaults on osx