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
Maybe we need one more test\case where ```#-moz-samplesize``` is presented to show that we actually respect it, what do you think?