Modifying for improved spritesheet loading