Localized some variables

* Localized some variables to avoid them from overriding variables in
mods.
* Allowed numbers to be supplied to draw.DrawText/draw.SimpleText