test discarding pixel