added --imageonly to skip running sextractor