Fixed some bugs in the photo sync viewer.