some photo viewer fixes