minor code cleanup, mostly generics
fix spelling of "thumbnail"
further abbreviate "true" Boolean check
Merge pull request #1377 from mtbc/rebased/develop/insight-tidyup

Insight tidyup (rebased onto develop)