Changing category image upon click on category in treeview

When clicking in the treeview, the clicked category (if it was checked
and not unchecked) will be notified and the category image will be
updated.