main.c reads in grayscale image files that were previously converted in MATLAB and stores them in buffers