generalize photo upload form
refactor add buttons / partials