add functions to restore and update the gamma ramps

Signed-off-by: Mattias Andrée <maandree@operamail.com>