modify views.js & resizeImg.js
modify views.js