implemented clipping of tiles