Bug 1002593 - Get Gallery 1.3t image down-sampling changes into master