Fix routing to person/organization images

This broke because the ':id(*)' pattern only works if it's the last
dynamic segment of the url. This switches the view and delete image
paths around so that the id of the organization or person comes last.