Fixed broken photo viewer after main activity destroy