Fixed incorrect drawing of rectangles by graphics.drawRect.
Fixed recvLine deprecation warnings.