Fix SIGFPE for vnc display of width/height = 1