Added an option to add a separate parameter to set the tile texture through setFunction method.