Implemented command line resizing of the input images properly.