Function createSpriteSheet