Support horizontalTileMode and verticalTileMode configurable