Allow argument `shp` to be a binary raster by converting it to a polygon and then continuing as if a shapefile was uploaded.