Use dynamic kfill size for barcode detection.

Without this dithering on high quality scans might break barcode
recognition apparently.