PHOTO: Fix fotorama history support