added gif save support again