Refactored drawChar.