Avoid resize operation if image is already the correct size
Merge pull request #892 from radarhere/master

Avoid resize operation if image is already the correct size