How to extract sources from an image and crossmatch with standard catalogs