Refactor credits drawing into module, remove globals