Nonlocal Flat Optics for Size-Selective Image Processing and Denoising