Added an animated GIF texture example.
Did some more refactoring.