Process centering before storing original state.

Necessary to store the right original state and have simpler reset
Add resetPan and reset. resetZoom does not center anymore