adding threshold and image split errors runtime errors for image split  make error for threshold