Thumbnail template fixes

From https://github.com/Wikia/app/pull/2762 - merging to correct branch