VID-2139

Few optimizations and code cleanups in Thumbnail code

https://wikia-inc.atlassian.net/browse/VID-2139

@lizlux good point. Don't we still need to leave the monobook check, though?