Fixes #1 - Added logic to resample the smaller image and to set the output doc's resolution.
Merge branch 'master' of https://github.com/callovarne/ExtendScript