problem with sprites and spritesheet rendering