Some basic processing of images in MATLAB