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
nit: looks like we can join declaration and assignment for both ```scale``` and ```fragment``` and then we probably don't need ```inputWidth``` and ```inputHeight``` :)