added id param to route for photo upload