Image Processing in C