add update for photo preview