Fixes escape code 2J behavior

Also fixes a race between clearCanvas() and binaryGet()
Merge pull request #6 from Jellyfrog/patch-2

Fixes escape code 2J behavior