Adds changes required for use with Appion, including exposing user modified params, outputting result image only, and making it easier to maintain the aspect ratio of the input image in the resulting mask image.