Adding ability to store as gif and a sample gif.