clean up sprite/spritesheet code