Bug 1042319 - [Gallery] WIP patch of update gallery edit UI and visuals

It seems to me that this ought to come from the editSettings() object rather than from the UI. That's an existing bug not one you've introduced, but it would be nice to fix it here.