master: Add gallery deactivation option, preserving use of 1 photo