Clicking icon selects image instead of changing it

This django-filer template was initially overridden in widgy in
order to allow users to select an image by clicking on its
thumbnail. Recent commits to django-filer changed how this
template works.

This commit attempts to remedy this issue by manually merging both
sets of changes.