Improve support for image galleries. Add example.