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

Insight tidyup