Added command line arguments for padding, cropping, and filling the background, even for stack images. Added reading/writing support for binary (1-bit) images.