Polarization Imaging and Edge Detection with Image-Processing Metasurfaces