Fix prevImage() should go back in history