added flags as parameter in image_cb_detector, updated mk_gray and image annotator