resize images and add in pictures to div