Fixes #1 - Added logic to resample the smaller image and to set the output doc's resolution.