added basic photo functionality
merged add and edit routes