Added imageOrientation parameter to define the orientation for resized images.
Merge branch 'master' into gh-pages