Changed drawText method