ADD: selection of number of pixels