Preserve the engine state after each render. Fixes #63