Fixed scaling issues, refactored the code, and added the SpriteSheet utility from JavaLib.