grayscale conversion and image sharpening implemented