Add gif export functionality

Still has issues, but it's getting there