I managed to make it work by adding a param cube and then adding my texture in it, but now I have a mosaic of the image instead of a large single one.