Some fixes to Grid Lines such that they don't fail on semi-small images.  Very small images 30 x 30 pixel etc. will still probably fail.