More work on sprite rendering on tilemaps