Bug 1046167: limit the allowable size of progressive jpegs

make the pjpeg image size limit stricter than for other image sizes
Bug 1052503 - [Rocketbar] Update loading progress bar r=benfrancis
Merge pull request #23289 from KevinGrandon/bug_1052503_reland

Bug 1052503 - [Rocketbar] Update loading progress bar
Merge pull request #23221 from davidflanagan/bug1046167

Bug 1046167-[Gallery]- Limit the allowable size of progressive jpegs r=russn