edit halftoning functions