Add save/restore for video memory/cpu memory