Add proper gif export functionality

Actually works as intended now!  Woo!