Save, load and detect gestures