multiple pictures on loan detail page; cleaning up views

p tags can't be nested. also there were some stray closing tags and
some missing ones.