X,y max seems to be about 32000, not 65535 as described