Use FILTER_NEAREST to remove seams between tiles