resize images and paste in 2x4 layout