Galleries are laid out after images are loaded.