Write GIF output to correct directory

Was previously written to pwd.
Fix bugs in MP4 animation

A property key was incorrect, and the process input was not being
closed.