fix #9917: draw big image tiles properly under OpenGL
Merge pull request #1444 from mtbc/big-image-tiles-9917

fix #9917: adjust tile drawing for big images