Fix file paths issue on trim operation.

Hi.

This one fixes two little issues I found using spritesheet-js `--trim` option.

Firstly, file paths weren't quoted, causing errors in ImageMagick's `convert` when directories included spaces in names. The other problem was that the temporary file couldn't be generated because of a wrong path.