Fix the ImageLoader.loadFramedSpriteSheet method to generate frames correctly