Revert "Fix prevImage() should go back in history"

This reverts commit 4eecd63310b275f2e6d231c40c8a575b924c44b3.
Try to use replaceState() to change #id