read an image and a shapefile