Fix bug with user-defined size and crop option

If the output-size was defined by user crop didn't work
Merge pull request #215 from Ben-Ho/3.7-crop-user-define-bug

Fix bug with user-defined size and crop option