What I'm looking for is to interpret a text file on level load, using a script. The text file would contain the coords of the tile and the name of the image it wants to use as the skin.

All I am looking for is the lines of code where you could take an external image file and apply it as a texture to entity being spawned.