Script that generates a spritesheet from photoshop layers