Bug 1046167: limit the allowable size of progressive jpegs

make the pjpeg image size limit stricter than for other image sizes
Merge pull request #23221 from davidflanagan/bug1046167

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