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

fix #9917: adjust tile drawing for big images (rebased onto develop)