you could just add the width and height to the file name ie "0640_0320_tileset1.bmp"
Then create a function to get the two sizes from the string
Then Pass this info to a function that will calculate the number of tiles and load the image to a pointer that is passed to a variable of your choice
Then create a function to get the two sizes from the string
Then Pass this info to a function that will calculate the number of tiles and load the image to a pointer that is passed to a variable of your choice