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
This part looks a little bit duplicate, but I have no better idea yet. Do you think it would be more cleaner if we simply deal the preview case in resolve and no-preview in reject?