Only save image meta data if the image could be resized.
Merge branch 'master' into gh-pages