added support for threshold cropping
skipped image copying if resizing is not necessary
added crop dataset threshold kernel
added the cropping-threshold and min-scan-lines parameters