drop min sdk version to froyo; run median filter after threshold