added static method for slicing up a spritesheet