Improve image-gallery example.

AnimatedImage with gif crashes on some machines.
Cleanup layouting and other aspects.