# Simplest way to add/insert an image to a plane/mesh with python

Hi: I keep trying to put a jpg image on a mesh, but its being far too complex, and I was thinking there must be an easier way.

I have tried to edit the following code to do that, but I keep failing (all the objects on the blend file will change their surface to their last image, and weird things happening)

imagen_original=bpy.data.images.load(filepath="D:\ERASE\LeoGoodOne\VoidRay_SC2_Rend1.jpg")
# importa el archivo
nombre_textura = "nombre_textura_" + str(index)
# define el nombre de la textura
textura_creada = bpy.data.textures.new(nombre_textura, type = 'IMAGE')
# crea la textura
bpy.data.textures[nombre_textura].image = imagen_original
# asigna el archivo a la textura
#agrega un slot para textura

filepath="D:\ERASE\LeoGoodOne\VoidRay_SC2_Rend1.jpg"