Create resize-script-change-images.js

script used to change images according to the resize