Usability fix in selection.

Do not "select" imgid -1. We were inserting -1 into the database and
the count of selected images were counting this. Clicking outside
of an images in the lightable delect the current images in single
selection mode. Doing the same in toggle (ctrl+click) selection mode
is ignored.
Minor style fixes.