* Update preview.go
Was some complex logic in there. This should be simpler.
* Update preview.go
Make GenerateThumbnail code more verbose
* Update preview.go
Finish renaming targetHeight and targetWidth
---------
Co-authored-by: Mattermost Build <build@mattermost.com>