Added possibility to pass 0 for width or height (exclusive or) to reproduce the ratio of the input image
Bugfix: Export to File in Commandlinetool