I like xLIB. If I remember correctly if you try to call a tile from picture 1 for example that is higher than 96 it will display the tile on the next picture. I think it works in tile maps but I dunno for sprites. Just be carefuly with xLIB because there is no error check so it can crash if you do a mistake