add tile clipping