Bug 899526 - [Gallery][HD] Thumbnails are blurred

https://bugzilla.mozilla.org/show_bug.cgi?id=899526

multiply devicePixelRatio for image size, and set background-size as contain to re-adjust size in case of scaling up unexpectedly.