change log style; fix bugs in getting photos.