[Fixes bug #1164222] Fix crash with small images with the Pixel Grid on.

Fixed a potential crash in the Open Images pad when opening small images
with the Pixel Grid enabled. Also, the Pixel Grid is now disabled for
previews in the Open Images pad, since it looks terrible.