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

Use screen size instead of window size