Added better input sanitization and the ability to process images with alpha channels; added more command-line options for controlling the output