Fixed logging in photos'