Spritesheet drawer function

got the function for the spritesheet drawer