Persist galleries

Addresses all points in #19