Writing a class to render spritesheet-based font