Bug 1003036: don't save fractional pixels sizes for gallery preview images

Use screen size instead of window size
Merge pull request #18806 from davidflanagan/bug1003036

Bug 1003036: don't save fractional pixels sizes for gallery preview images r=russn