Bug 856543 - scaling gallery image in wallpaper app r=davidflanagan

Based on https://github.com/mozilla-b2g/gaia/pull/9104