Gif animation enhancements. Takes actual grid size into account, can now center animation horizontally.
Merge branches 'master' and 'gif'