Update image.class.js
Merge pull request #1720 from asturur/Image-aspec

preserve Aspect Ratio for images support