fix typo in ':original-size'
fix tests
create target directory if it does not exist