Hmm. There is code in Gallery (apps/gallery/js/MetadataParser.js:27) where we manually create previews for images that don't have them.  That code needs the devicePixelRatio change also, I think, or we'll start seeing the error message you have below.