update represented image.

This pull request updates the work to check and show either represented image or work's own image in a consistent manner during show work and search results.