Modified compressImg.js for two size images and modified main.js.