Added code for sprite sheet

Added the code to build the sprite sheet