change to using pixels in the MATLAB motion control handler