make smaller version of images and change the image source