added drawTextOnCanvas to drawModule