Add animated gif example and fix resetImages function.