More small fixes to the view photos route