Assemble code for getting the image pixels

Assembly code for getting the image pixel values from MATLAB.