Bug 847060 - create and save a preview image during metadata parsing for...

... large images that do not have an embedded preview r=dkuo(cherry picked from commit 055ff9c914b21741459411b3fb79425293ede40c)