Update smartimages.js

Fixed problem with width of images.