app: port gradient saving to GIO