Update plugin.js

it would be better use width, height attribute for img element