respect targetWidth and targetHeight if set
respect both scale and target size
Merge pull request #88 from adobe-research/jh/respect-size-setting

respect targetWidth and targetHeight if set