Added basic gif creation functionality.