Moved the whole display of fields to PHP.

Image works on edit page, not on read or separate image page.

Change-Id: I6d5d75a98e87522d067fb09439befcb4cb83b7c6