updated add photo functions.

can now view photos in the Details page.