department photos: updated logic