app: port palette saving to GIO