Update plugin.js

Maybe I didn't explain very clearly. So I create this pull request to describe my question again.
I think setting IMG's size by width and height attribute is a better and more reliable way. And it works well as I test it.