Fix issue where photos in browser would sometimes show up blank