Fixed some bugs in the photo browser.