Extract person/org image tag into partial

This ensures that the same image code is used on the view and edit
pages and fixes the fact that the edit forms weren't using the new proxy
code.