Bug 983172 - Parsing jpeg header information for downsampling the image for thumbnail

- Use image_utils lib for generating the thumbnail
- Use fixed thumbnail size and update the styling
I think this solution is similar to my previous proposal, and it looks better than original one, thanks!