finishing resize and grayscale