Yes, there is :-)
After further testing, I've managed to do it.
First, I've tried changing the file extension (from jpg to my_ext) and them load it to memory and pass it as an image. The simplified code to do it is:
var my_file = File.new()
my_file.open("res://image_file.my_ext", File.READ)
var file_size = my_file.get_len()
var mem_temp = my_file.get_buffer(file_size)
var img = Image.new()
img.load_jpg_from_buffer(mem_temp)
var texture = ImageTexture.new()
texture.create_from_image(img, 0)
$TextureRect.texture = texture
This way, Godot does not recognise the file as an image and does not import it. However, it also doesn't export it automatically, when exporting, in Resources, I had to specify that all *.my_ext files should be included. This made see an error I've made earlier when trying to use pck files: I had not included them in the export, that's why it didn't work.
So this can be made easier by making a zip file with all the photos, and mounting that zip during runtime. Like this:
var err1 = ProjectSettings.load_resource_pack("res://photos.zip")
And then:
var image = Image.new()
# my_picture.jpg is inside the zip file, paths must match
var err = image.load("res://my_picture.jpg")
var texture = ImageTexture.new()
texture.create_from_image(image, 0)
$TextureRect.texture = texture
In this case, when exporting, in Resources, *.zip files must be specified for Godot to include the file with the photos.
Having all this going around with the poolbytearrays of images and the textures and passing the textures to the control is not elegant at all. I guess it consumes much more resources than needed. But the load() texture method of controls and sprites only work with stex images (imported images). So this is the only way I've found to bypass the stex files, saving huge amounts of precious storage (if the target platforms were the desktops, it wouldn't be a problem, but with the 100MB limitation on Android, or the expansion files - while dynamic asset delivery is not a really for Godot), so it seems to me like a satisfying solution.