[MS] return thumbnail.
[MS] return thumbnail.
[MS] If no jpg, return a red jpg.
[MS] Refactor code.