code to run sextractor