You can only repeat the sprite in one direction.
To repeat the sprite horizontally you would need to edit the sprite so that the image you want to repeat is underneath the others with nothing else either side of it.
Then the code you provided should work (altering the position to suit).