Add rotate and translate functionality to drawText